diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-03 01:31:57 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-03 01:31:57 -0700 |
commit | 3e3dcf4b43fb6bf14bba1bd4024b418124822e93 (patch) | |
tree | b70a6b21034ce00c7b741329f4b5b50a29ef9e26 /tests/pln-aux-3.tex | |
parent | 49cc81c4edff6e3c813a93964923bdb35f07e95c (diff) | |
parent | 225c63363a259867bad8848e9e9880e43cbf4ad5 (diff) | |
download | luaotfload-3e3dcf4b43fb6bf14bba1bd4024b418124822e93.tar.gz |
Merge pull request #14 from lualatex/master
update with lualatex master
Diffstat (limited to 'tests/pln-aux-3.tex')
-rw-r--r-- | tests/pln-aux-3.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/pln-aux-3.tex b/tests/pln-aux-3.tex new file mode 100644 index 0000000..12a80cf --- /dev/null +++ b/tests/pln-aux-3.tex @@ -0,0 +1,39 @@ +\input luaotfload.sty + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% math dimension getter +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\font\xitsmath=file:xits-math.otf +\font\cambriamath=file:cambria.ttc(1) + +\font\main=file:Iwona-Regular.otf at 12pt\main + +\directlua{ + local aux = luaotfload.aux + local test_a = function (fontname, dimension) + tex.sprint( + "(", fontname, " (", dimension, " ", + aux.get_math_dimension(fontname, dimension), + [[))\endgraf ]]) + end + + local test_b = function (fontname, dimension) + aux.sprint_math_dimension(fontname, dimension) + tex.print[[\endgraf ]] + end + + test_a("xitsmath", "AxisHeight") + test_a("xitsmath", "RadicalVerticalGap") + test_a("cambriamath", "StackTopShiftUp") + test_a("cambriamath", "FractionNumeratorGapMin") + + test_b("xitsmath", "AxisHeight") + test_b("xitsmath", "RadicalVerticalGap") + test_b("cambriamath", "StackTopShiftUp") + test_b("cambriamath", "FractionNumeratorGapMin") +} + +foo bar baz + +\bye |