summaryrefslogtreecommitdiff
path: root/tests/font_patch.tex
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-03-02 20:46:35 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-03-02 20:46:35 +0200
commit63b91e48730d3396e8291dd6151f8164b0e96aac (patch)
treeb219d3ac7d81f5f313be6435eeb242eb11d0f28a /tests/font_patch.tex
parent9883a4f6bb58473e3620ec6614315b546a2c6a9b (diff)
parent8151f93bac4474b23b51e941ab69b9a817daf82c (diff)
downloadluaotfload-63b91e48730d3396e8291dd6151f8164b0e96aac.tar.gz
Merge remote branch 'origin/master' into unstable
Conflicts: luaotfload.dtx
Diffstat (limited to 'tests/font_patch.tex')
-rw-r--r--tests/font_patch.tex24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/font_patch.tex b/tests/font_patch.tex
new file mode 100644
index 0000000..e096551
--- /dev/null
+++ b/tests/font_patch.tex
@@ -0,0 +1,24 @@
+\input{luaotfload.sty}
+\directlua {
+ local function patch(fontdata)
+ local mc = fontdata.MathConstants
+ local em = fontdata.units
+ local sz = fontdata.size
+ if fontdata.psname == "CambriaMath" and mc then
+ mc.DisplayOperatorMinHeight = 2800 / em * sz
+ end
+ end
+ luatexbase.add_to_callback("luaotfload.patch_font", patch, "cambria.domh")
+}
+
+\font\4={name:Cambria Math:mode=base;script=math} at 10pt
+\font\5={name:Cambria Math:mode=base;script=math;ssty=1} at 7pt
+\font\6={name:Cambria Math:mode=node;script=math;ssty=2} at 5pt
+\textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6
+
+$$
+\Umathchar"1"4`∫
+\Umathchar"1"4`∑
+$$
+\bye
+