diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-07-27 01:06:13 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-07-27 01:06:19 +0200 |
commit | 9daf6699e10df529ad035a0a8a89451d74ee6fbf (patch) | |
tree | fef4760529ae90cba8ce7afe46934f519b6c024d /src | |
parent | 633aa6b951eff4221b4595c3ca19563813dd89df (diff) | |
download | luaotfload-9daf6699e10df529ad035a0a8a89451d74ee6fbf.tar.gz |
[aux] unrestrict fontname rewriting
Since TFM fonts now take the same path as OTF and suchlike, not passing
on the spec literally may actually be harmful.
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-auxiliary.lua | 12 |
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 |