diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-init.lua | 8 | ||||
-rw-r--r-- | src/luaotfload-main.lua | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua index 22ad704..8bbb59f 100644 --- a/src/luaotfload-init.lua +++ b/src/luaotfload-init.lua @@ -309,3 +309,11 @@ luatexbase.add_to_callback("hpack_filter", "luaotfload.node_processor", 1) +return { + init = function () + init_prepare () + init_main () + init_cleanup () + end +} + diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua index d15e082..6e7a971 100644 --- a/src/luaotfload-main.lua +++ b/src/luaotfload-main.lua @@ -143,7 +143,7 @@ end local make_loader = function (prefix) return function (name) local modname = make_loader_name (prefix, name) - require (modname) + return require (modname) end end @@ -154,7 +154,7 @@ local load_fontloader_module = make_loader "fontloader" luaotfload.loaders.luaotfload = load_luaotfload_module luaotfload.loaders.fontloader = load_fontloader_module -load_luaotfload_module "init" --- fontloader initialization +luaotfload.init = load_luaotfload_module "init" --- fontloader initialization local log = luaotfload.log local logreport = log.report |