summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-11-26 17:54:59 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-11-26 17:54:59 +0200
commitea99932d684f7a7e9e320edc8b86b43f992579f1 (patch)
tree5f9cfd2a83d61bc11d388df0c81c36817dff0378
parent86eaa7f9ef6bfa167456b0274c93bb958c6b6611 (diff)
downloadluaotfload-ea99932d684f7a7e9e320edc8b86b43f992579f1.tar.gz
Test file
-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..a8820b1
--- /dev/null
+++ b/tests/font_patch.tex
@@ -0,0 +1,24 @@
+\input{luaotfload.sty}
+\directlua {
+ local function patch_font(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
+ luaotfload.add_patch_callback(patch_font, "modernmath.patch_font")
+}
+
+\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
+