summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-19 20:25:50 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-19 20:25:54 +0200
commitee746416e295bcaee2bf5472220501f121228997 (patch)
tree539fd7195302c28346b21ce0397657c988a29636
parent8c1f7905e092398b7ff88a4fd6aa5157a6f47c74 (diff)
downloadluaotfload-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.
-rw-r--r--src/luaotfload-auxiliary.lua5
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