diff options
Diffstat (limited to 'tex/context/base/font-def.lua')
-rw-r--r-- | tex/context/base/font-def.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/font-def.lua b/tex/context/base/font-def.lua index 61132e661..3a09b6664 100644 --- a/tex/context/base/font-def.lua +++ b/tex/context/base/font-def.lua @@ -372,7 +372,12 @@ function tfm.read(specification) local postprocessors = tfmtable.postprocessors if postprocessors then for i=1,#postprocessors do - postprocessors[i](tfmtable) -- after scaling etc + local extrahash = postprocessors[i](tfmtable) -- after scaling etc + if type(extrahash) == "string" and extrahash ~= "" then + -- e.g. a reencoding needs this + extrahash = gsub(lower(extrahash),"[^a-z]","-") + tfmtable.fullname = format("%s-%s",tfmtable.fullname,extrahash) + end end end -- |