summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-07-31 21:24:14 +0000
committerKarl Berry <karl@freefriends.org>2011-07-31 21:24:14 +0000
commit1f05122edd891a75b0c057209e9ff46a265d3119 (patch)
tree3731fbbe1af59da1288970f59b160d35204dc56c /Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua
parent4fcd51f020e5d12da9e8fa9dcff83c632385cb24 (diff)
unicode-math (31jul11)
git-svn-id: svn://tug.org/texlive/trunk@23287 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.lua31
1 files changed, 31 insertions, 0 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
new file mode 100644
index 00000000000..29c2367cfed
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.lua
@@ -0,0 +1,31 @@
+--
+-- This is file `unicode-math.lua',
+-- generated with the docstrip utility.
+--
+-- The original source files were:
+--
+-- 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>
+--
+-- 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
+-- (your choice): <http://www.latex-project.org/lppl/>.
+--
+-- This work is "author-maintained" by Will Robertson.
+local err, warn, info, log = luatexbase.provides_module({
+ name = "unicode-math",
+ date = "2011/04/23",
+ version = 0.1,
+ description = "Unicode math typesetting for LuaLaTeX",
+ author = "Khaled Hosny, Will Robertson, Philipp Stephani",
+ licence = "LPPL v1.3+"
+})
+local function set_sscale_dimens(fontdata)
+ local mc = fontdata.MathConstants
+ if mc then
+ fontdata.parameters[10] = mc.ScriptPercentScaleDown or 70
+ fontdata.parameters[11] = mc.ScriptScriptPercentScaleDown or 50
+ end
+end
+luatexbase.add_to_callback("luaotfload.patch_font", set_sscale_dimens, "unicode_math.set_sscale_dimens")