From c00cff0a14599a8f4db203aa0e845881bc8019b1 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Wed, 19 May 2010 10:38:41 +0300 Subject: oops --- otfl-font-nms.lua | 7 +++++-- 1 file 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 { } -- cgit v1.2.3