From 9daf6699e10df529ad035a0a8a89451d74ee6fbf Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 27 Jul 2016 01:06:13 +0200 Subject: [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. --- src/luaotfload-auxiliary.lua | 12 +++++------- 1 file 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 -- cgit v1.2.3