diff options
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r-- | otfl-font-nms.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 8ae245f..f856757 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -66,9 +66,14 @@ local synonyms = { } function names.resolve(specification) + local tfm = resolvers.find_file(specification.name, "ofm") local name = sanitize(specification.name) local style = sanitize(specification.style) or "regular" local size = tonumber(specification.optsize) or specification.size and specification.size / 65536 + if tfm then + -- is a tfm font, skip names database + return specification.name, false + end if not loaded then names.data = names.load() loaded = true |