summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2010-05-19 10:38:41 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2010-05-19 10:38:41 +0300
commitc00cff0a14599a8f4db203aa0e845881bc8019b1 (patch)
tree79e1dad5fc7e42abdd40cbd9322505494893a840
parent5a51dbf2b88e97a65baeaff3f254ca4e983b48f4 (diff)
downloadluaotfload-c00cff0a14599a8f4db203aa0e845881bc8019b1.tar.gz
oops
-rw-r--r--otfl-font-nms.lua7
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 { }