diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-04-19 20:25:50 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-04-19 20:25:54 +0200 |
commit | ee746416e295bcaee2bf5472220501f121228997 (patch) | |
tree | 539fd7195302c28346b21ce0397657c988a29636 /src | |
parent | 8c1f7905e092398b7ff88a4fd6aa5157a6f47c74 (diff) | |
download | luaotfload-ee746416e295bcaee2bf5472220501f121228997.tar.gz |
[aux] fix crash with tfm fonts
Fixes https://github.com/lualatex/luaotfload/issues/334
Old-style font definitions only need a font name, so the extra quotes
aren’t necessary to feed the \fontname string back into \font.
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-auxiliary.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua index 35f8f2b..58e4c59 100644 --- a/src/luaotfload-auxiliary.lua +++ b/src/luaotfload-auxiliary.lua @@ -42,7 +42,10 @@ local luaotfload_callbacks = { } --- https://github.com/khaledhosny/luaotfload/issues/54 local rewrite_fontname = function (tfmdata, specification) - tfmdata.name = [["]] .. specification .. [["]] + local format = tfmdata.properties.format + if format ~= "type1" then + tfmdata.name = [["]] .. specification .. [["]] + end end local rewriting = false |