summaryrefslogtreecommitdiff
path: root/luaotfload.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-15 03:46:31 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-15 03:46:31 +0200
commitba7ad3c0cbede3e91fac9101b6f57f1849726725 (patch)
tree0642eac9faf0d9b00c340f124c14da3ddcda3ffd /luaotfload.lua
parent17893ca1a58ea8bcea492df192209bc96432fcd0 (diff)
downloadluaotfload-ba7ad3c0cbede3e91fac9101b6f57f1849726725.tar.gz
us TFM reader for OFM (needs testing)
Diffstat (limited to 'luaotfload.lua')
-rw-r--r--luaotfload.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/luaotfload.lua b/luaotfload.lua
index 6e951dd..1ca1fdc 100644
--- a/luaotfload.lua
+++ b/luaotfload.lua
@@ -83,10 +83,10 @@ filename.
local find_vf_file = function (name)
local fullname = find_file(name, "ovf")
if not fullname then
- fullname = find_file(file.removesuffix(file.basename(name)), "ovf")
+ fullname = find_file(file.removesuffix(file.basename(name)), "ovf")
end
if fullname then
- log("loading virtual font file %s.", fullname)
+ log("loading virtual font file %s.", fullname)
end
return fullname
end
@@ -178,9 +178,9 @@ local non_generic_context =non_generic_context
generic_context.no_callbacks_yet = true
_G.non_generic_context = { luatex_fonts = {
- load_before = "otfl-fonts-merged.lua",
- -- load_after = nil, --- TODO, this is meant for callbacks
- skip_loading = true,
+ load_before = "otfl-fonts-merged.lua",
+ -- load_after = nil, --- TODO, this is meant for callbacks
+ skip_loading = true,
}}
--[[doc--
@@ -235,7 +235,9 @@ if fonts and fonts.readers.tfm then
--- (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
+ fonts.readers.ofm = fonts.readers.tfm
+ fonts.handlers.ofm = fonts.handlers.tfm
+ fonts.formats.ofm = fonts.formats.tfm
--------------------------------------------------------------------
end
loadmodule"font-nms.lua"
@@ -362,6 +364,6 @@ add_to_callback("luaotfload.patch_font",
"unicodemath.set_sscale_diments")
]==]
--- vim:tw=71:sw=2:ts=2:expandtab
+-- vim:tw=71:sw=4:ts=4:expandtab
-- End of File `luaotfload.lua'.