summaryrefslogtreecommitdiff
path: root/src/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-07-28 00:06:07 +0200
committerGitHub <noreply@github.com>2016-07-28 00:06:07 +0200
commit2fcdccf7edfa1cfb0f03fe8f2163c7c5d8281984 (patch)
treefcb876f65c47989ecdf254c5ea9d54caa3be10ae /src/luaotfload-auxiliary.lua
parentdeef74c357ff2f88d53bc6a745b36b6a75717d2d (diff)
parentd37cfaf8b6bd3e82c8220d385e5da53793f332e1 (diff)
downloadluaotfload-2fcdccf7edfa1cfb0f03fe8f2163c7c5d8281984.tar.gz
Merge pull request #373 from phi-gamma/master
fix adding of custom features
Diffstat (limited to 'src/luaotfload-auxiliary.lua')
-rw-r--r--src/luaotfload-auxiliary.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 3c43eb9..1a21405 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -43,13 +43,11 @@ local luaotfload_callbacks = { }
local rewrite_fontname = function (tfmdata, 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
+ if stringfind (specification, " ") then
+ tfmdata.name = stringformat ("%q", specification)
+ else
+ --- other specs should parse just fine
+ tfmdata.name = specification
end
end