diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-11 08:18:59 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-11 08:18:59 +0200 |
commit | ff293e501884b1d90befa05d5331cc7ff74b91c6 (patch) | |
tree | c9dd2785626def5b922ff11ebd00204410681ea3 | |
parent | 2d352121cddf97e8249c72b58738cb2ede1b1557 (diff) | |
download | luaotfload-ff293e501884b1d90befa05d5331cc7ff74b91c6.tar.gz |
restore ``name`` fields from ``metadata.origname``
https://github.com/lualatex/luaotfload/issues/57#issuecomment-17753420
-rw-r--r-- | luaotfload-auxiliary.lua | 6 |
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 |