summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaotfload
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-16 22:27:42 +0000
committerKarl Berry <karl@freefriends.org>2010-07-16 22:27:42 +0000
commit4a6deb4256d4af4b3d74940d449b335fac09ddd4 (patch)
tree548f79eb8266fb4462c51a057ef54149082343ab /Master/texmf-dist/tex/luatex/luaotfload
parentd1a48791cba8d3ab5acf5040cdeb64d81939c58d (diff)
luaotfload update (15jul10)
git-svn-id: svn://tug.org/texlive/trunk@19484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload')
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua33
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty2
2 files changed, 27 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
index 4cdbd127de6..fbfc6f3d2fd 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
@@ -20,9 +20,9 @@ module('luaotfload', package.seeall)
luaotfload.module = {
name = "luaotfload",
- version = 1.15,
- date = "2010/07/12",
- description = "ConTeXt font loading system.",
+ version = 1.18,
+ date = "2010/07/15",
+ description = "OpenType layout system.",
author = "Elie Roux & Hans Hagen",
copyright = "Elie Roux",
license = "CC0"
@@ -136,14 +136,20 @@ local function def_font(...)
end
fontdata.parameters[8] = capheight
if otfdata.metadata.math then
+ local mc = { }
for k,v in next, otfdata.metadata.math do
- if k == "RadicalDegreeBottomRaisePercent" then
- -- this is a percent
- fontdata.MathConstants[k] = v
+ if k:find("Percent") then
+ -- keep percent values as is
+ mc[k] = v
else
- fontdata.MathConstants[k] = v / units * size
+ mc[k] = v / units * size
end
end
+ -- for \overwithdelims
+ mc["FractionDelimiterSize"] = 1.01 * size
+ mc["FractionDelimiterDisplayStyleSize"] = 2.39 * size
+
+ fontdata.MathConstants = mc
end
end
@@ -153,6 +159,19 @@ end
fonts.mode = "node"
+local register_base_sub = fonts.otf.features.register_base_substitution
+local gsubs = {
+ "ss01", "ss02", "ss03", "ss04", "ss05",
+ "ss06", "ss07", "ss08", "ss09", "ss10",
+ "ss11", "ss12", "ss13", "ss14", "ss15",
+ "ss16", "ss17", "ss18", "ss19", "ss20",
+}
+
+for _,v in next, gsubs do
+ register_base_sub(v)
+end
+
+
function luaotfload.register_callbacks()
luatexbase.add_to_callback('pre_linebreak_filter',
nodes.simple_font_handler,
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
index 65260b18e9b..bd347d6de8f 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
@@ -24,7 +24,7 @@
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luaotfload}%
- [2010/07/12 v1.16 ConTeXt font loading system]
+ [2010/07/15 v1.18 OpenType layout system]
\RequirePackage{luatextra}
\fi