summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 08:18:59 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 08:18:59 +0200
commitff293e501884b1d90befa05d5331cc7ff74b91c6 (patch)
treec9dd2785626def5b922ff11ebd00204410681ea3 /luaotfload-auxiliary.lua
parent2d352121cddf97e8249c72b58738cb2ede1b1557 (diff)
downloadluaotfload-ff293e501884b1d90befa05d5331cc7ff74b91c6.tar.gz
restore ``name`` fields from ``metadata.origname``
https://github.com/lualatex/luaotfload/issues/57#issuecomment-17753420
Diffstat (limited to 'luaotfload-auxiliary.lua')
-rw-r--r--luaotfload-auxiliary.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua
index be380e3..999bc22 100644
--- a/luaotfload-auxiliary.lua
+++ b/luaotfload-auxiliary.lua
@@ -64,10 +64,8 @@ local add_fontdata_fallbacks = function (fontdata)
fontdata.units = fontdata.units_per_em
else --- otf
- metadata = fontdata.shared.rawdata.metadata
- fontdata.name = fontdata.name
- or fontdata.fullname
- or fontdata.psname
+ metadata = fontdata.shared.rawdata.metadata
+ fontdata.name = metadata.origname or fontdata.name
fontdata.units = fontdata.units_per_em
fontdata.size = fontdata.size or fontparameters.size
local resources = fontdata.resources