summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-10 17:34:37 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-10 17:34:37 +0200
commit807bccec2b3357f6c2c2dde2c7324e5fc86e0d7a (patch)
tree1d3491ba873f96ab15ebdec9c3f5f232dfb29517
parentce418e183f6fed281940def9b848258c8b25916e (diff)
downloadluaotfload-807bccec2b3357f6c2c2dde2c7324e5fc86e0d7a.tar.gz
remove cruft from auxlib
-rw-r--r--luaotfload-auxiliary.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua
index 8d12d11..be380e3 100644
--- a/luaotfload-auxiliary.lua
+++ b/luaotfload-auxiliary.lua
@@ -31,7 +31,7 @@ local stringlower = string.lower
local stringformat = string.format
local stringgsub = string.gsub
local stringbyte = string.byte
-local stringmatch = string.match
+local stringfind = string.find
-----------------------------------------------------------------------
--- font patches
@@ -69,17 +69,13 @@ local add_fontdata_fallbacks = function (fontdata)
or fontdata.fullname
or fontdata.psname
fontdata.units = fontdata.units_per_em
+ fontdata.size = fontdata.size or fontparameters.size
local resources = fontdata.resources
- --- the next line is a hack that fixes scaling of fonts with
- --- non-standard em-sizes (most ms fonts have 2048, others
- --- come with 256)
- --fontdata.size = fontparameters.size * fontdata.units / 1000
--- for legacy fontspec.lua and unicode-math.lua
fontdata.shared.otfdata = {
pfminfo = { os2_capheight = metadata.pfminfo.os2_capheight },
metadata = { ascent = metadata.ascent },
}
- --fontdata.shared.otfdata.metadata = metadata --- brr, that’s meta indeed
--- for microtype and fontspec
local fake_features = { } -- wrong: table.copy(resources.features)
setmetatable(fake_features, { __index = function (tab, idx)