summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-13 19:02:19 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-13 19:02:19 +0200
commit0266ebff82d4778f53c39787db23e9fa31837b32 (patch)
tree9898db609c47f0d9c007fc4fbf46bfba51f7c602
parent1b17f5aef71290d25d57cca6b0b2a762d22fd098 (diff)
downloadluaotfload-0266ebff82d4778f53c39787db23e9fa31837b32.tar.gz
attempt at restoring KH’l OFM hack
-rw-r--r--luaotfload.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/luaotfload.lua b/luaotfload.lua
index 10e3373..cfe29a6 100644
--- a/luaotfload.lua
+++ b/luaotfload.lua
@@ -203,8 +203,21 @@ add_to_callback("hpack_filter",
loadmodule"font-otc.lua" -- TODO check what we can drop from otfl-features
-loadmodule"lib-dir.lua" -- required by font-nms; will change with lualibs update
+loadmodule"lib-dir.lua" -- required by font-nms
loadmodule"luat-ovr.lua"
+
+if fonts and fonts.readers.tfm then
+ --------------------------------------------------------------------
+ --- OFM; read this first
+ --------------------------------------------------------------------
+ --- I can’t quite make out whether this is still relevant
+ --- as those ofm fonts always fail, even in the 2011 version
+ --- (mktexpk: don't know how to create bitmap font for omarabb.ofm)
+ --- the font loader appears to read ofm like tfm so if this
+ --- hack was supposed achieve that, we should excise it anyways
+ fonts.readers.ofm = fonts.readers.tfm
+ --------------------------------------------------------------------
+end
loadmodule"font-nms.lua"
loadmodule"font-clr.lua"
loadmodule"font-ltx.lua"