summaryrefslogtreecommitdiff
path: root/src/luaotfload-init.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-06-09 23:36:37 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-06-09 23:36:37 +0200
commit431c25a1200c7d0e8b7fe55173357d29f7247975 (patch)
treec4441a0c2b5696c01973612f8807c45b885aaf44 /src/luaotfload-init.lua
parent892ebebdc0fb6d59e1748e7d81e976d41f8fd85f (diff)
downloadluaotfload-431c25a1200c7d0e8b7fe55173357d29f7247975.tar.gz
[main,init] separate loading of fontloader and lualibs packages
Diffstat (limited to 'src/luaotfload-init.lua')
-rw-r--r--src/luaotfload-init.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index 034ec57..4968877 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -14,6 +14,7 @@
Initialization phases:
- Load Lualibs from package
+ - Set up the logger routines
- Load Fontloader
- as package specified in configuration
- from Context install
@@ -29,10 +30,30 @@
--doc]]--
+config = config or { }
+local config = config
+config.luaotfload = config.luaotfload or { }
+
+config.lualibs = config.lualibs or { }
+config.lualibs.verbose = false
+config.lualibs.prefer_merged = true
+config.lualibs.load_extended = true
+
+require "lualibs"
+
+if not lualibs then error("this module requires Luaotfload") end
if not luaotfload then error("this module requires Luaotfload") end
local load_luaotfload_module = luaotfload.loaders.luaotfload
local load_fontloader_module = luaotfload.loaders.fontloader
+--[[doc--
+
+ The logger needs to be in place prior to loading the fontloader due
+ to order of initialization being crucial for the logger functions
+ that are swapped.
+
+--doc]]--
+load_luaotfload_module "log"