diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-29 22:51:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-29 22:51:18 +0000 |
commit | 9de37ad7dbd5b10933f4fc87f93ddf5a77501004 (patch) | |
tree | c2b1a45d59af06b7de383f5013203568d8d566d2 /Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua | |
parent | 3a0fe3edcaaeeb918cbcbeaf1eee934328a91bb2 (diff) |
unicode-math 0.7 (29may12)
git-svn-id: svn://tug.org/texlive/trunk@26720 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua')
-rw-r--r-- | Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua index 29c2367cfed..98e3dea75aa 100644 --- a/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua +++ b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua @@ -7,6 +7,7 @@ -- unicode-math.dtx (with options: `lua') -- Copyright 2006-2011 Will Robertson <will.robertson@latex-project.org> -- Copyright 2010-2011 Philipp Stephani <st_philipp@yahoo.de> +-- Copyright 2012 Khaled Hosny <khaledhosny@eglug.org> -- -- This package is free software and may be redistributed and/or modified under -- the conditions of the LaTeX Project Public License, version 1.3c or higher @@ -15,7 +16,7 @@ -- This work is "author-maintained" by Will Robertson. local err, warn, info, log = luatexbase.provides_module({ name = "unicode-math", - date = "2011/04/23", + date = "2012/04/23", version = 0.1, description = "Unicode math typesetting for LuaLaTeX", author = "Khaled Hosny, Will Robertson, Philipp Stephani", @@ -29,3 +30,13 @@ local function set_sscale_dimens(fontdata) end end luatexbase.add_to_callback("luaotfload.patch_font", set_sscale_dimens, "unicode_math.set_sscale_dimens") +local function patch_cambria_domh(fontdata) + local mc = fontdata.MathConstants + local mh = 2800 / fontdata.units * fontdata.size + if fontdata.psname == "CambriaMath" and mc then + if mc.DisplayOperatorMinHeight < mh then + mc.DisplayOperatorMinHeight = mh + end + end +end +luatexbase.add_to_callback("luaotfload.patch_font", patch_cambria_domh, "cambria.domh") |