From 807bccec2b3357f6c2c2dde2c7324e5fc86e0d7a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 10 May 2013 17:34:37 +0200 Subject: remove cruft from auxlib --- luaotfload-auxiliary.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'luaotfload-auxiliary.lua') 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) -- cgit v1.2.3