diff options
Diffstat (limited to 'tex/context/base/font-otr.lua')
-rw-r--r-- | tex/context/base/font-otr.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/font-otr.lua b/tex/context/base/font-otr.lua index 49b4565c6..9d46d654b 100644 --- a/tex/context/base/font-otr.lua +++ b/tex/context/base/font-otr.lua @@ -1749,8 +1749,9 @@ local function readdata(f,offset,specification) -- local askedname = specification.askedname if askedname then - local cleanname = gsub(askedname,"[^azAZ09]","") - local foundname = gsub(getname(fontdata,"fullname") or "","[^azAZ09]","") + local fullname = getname(fontdata,"fullname") or "" + local cleanname = gsub(askedname,"[^a-zA-Z0-9]","") + local foundname = gsub(fullname,"[^a-zA-Z0-9]","") if lower(cleanname) ~= lower(foundname) then return -- keep searching end |