diff options
-rw-r--r-- | otfl-font-nms.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 7731efb..a3723eb 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -6,9 +6,12 @@ if not modules then modules = { } end modules ['font-nms'] = { license = "GPL" } --- this is a patch for otfl-font-def.lua, that defines a reader for ofm fonts, +-- This is a patch for otfl-font-def.lua, that defines a reader for ofm fonts, -- this is necessary if we set the forced field of the specification to 'ofm' -fonts.tfm.readers.ofm = fonts.tfm.readers.tfm +-- we use it only when using luaotfload, not mkluatexfontdb. +if fonts and fonts.tfm and fonts.tfm.readers then + fonts.tfm.readers.ofm = fonts.tfm.readers.tfm +end fonts = fonts or { } fonts.names = fonts.names or { } |