summaryrefslogtreecommitdiff
path: root/src/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-20 07:40:31 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-20 07:40:31 +0200
commit1c93f97f4bce1b399e90f65657e95ef13434128c (patch)
treec0bb9705e1276e548a19ef656749d890d78860f6 /src/luaotfload-auxiliary.lua
parentc35210aaaf992793bd111a0bd90e28630c7d2101 (diff)
parente14f3c50eedcd2652125177db0deacd8079cc048 (diff)
downloadluaotfload-1c93f97f4bce1b399e90f65657e95ef13434128c.tar.gz
Merge pull request #335 from phi-gamma/master
format and feature handling, fixes for 2.7
Diffstat (limited to 'src/luaotfload-auxiliary.lua')
-rw-r--r--src/luaotfload-auxiliary.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 35f8f2b..3d300e7 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -42,7 +42,15 @@ local luaotfload_callbacks = { }
--- https://github.com/khaledhosny/luaotfload/issues/54
local rewrite_fontname = function (tfmdata, specification)
- tfmdata.name = [["]] .. specification .. [["]]
+ local format = tfmdata.format or tfmdata.properties.format
+ if format ~= "type1" then
+ if stringfind (specification, " ") then
+ tfmdata.name = stringformat ("%q", specification)
+ else
+ --- other specs should parse just fine
+ tfmdata.name = specification
+ end
+ end
end
local rewriting = false