summaryrefslogtreecommitdiff
path: root/src/luaotfload-main.lua
diff options
context:
space:
mode:
authorDavid Carlisle <d.p.carlisle@gmail.com>2015-07-28 18:39:05 +0100
committerDavid Carlisle <d.p.carlisle@gmail.com>2015-07-28 18:39:05 +0100
commit57edc8b592575a0fff30b0a23e6425adc04b974f (patch)
treefade7f5af29d5cb7f1586fad84948aca2936045e /src/luaotfload-main.lua
parent11cab572fa7addf670c958e680aaf81299f201ac (diff)
downloadluaotfload-57edc8b592575a0fff30b0a23e6425adc04b974f.tar.gz
Patch to not assume luatexbase needs to be loaded
The ltluatex code being trialed at https://github.com/josephwright/ltluatex includes a luatexbase emulation package that allows luaotfload to run without change but the core code that is intended to be included in future latex formats requires two small changes and also would require that luaotfload detect that luatex support is already provided and so not load luatexbase. \RequireLuaModule is not defined by default in TeX and luatexbase.reset_callback is not defined by default in lua in the core ltluatex code.
Diffstat (limited to 'src/luaotfload-main.lua')
-rw-r--r--src/luaotfload-main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index b633ed7..919e343 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -249,7 +249,9 @@ do
definers.info_generic = mk_info "generic"
end
-reset_callback "define_font"
+if not reset_callback == nil then
+ reset_callback "define_font"
+end
--[[doc--