summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-auxiliary.lua')
-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)