diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-18 07:52:24 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-18 07:58:13 +0100 |
commit | 85bc85c1f116f759c59ef06f27bb37c0d2bb80f6 (patch) | |
tree | 5d08779a2c2b52a157825904ca95fb8c6ebbfe37 /src/luaotfload-init.lua | |
parent | 17b8126f260a4f80a041ab179ceb68abf425c359 (diff) | |
download | luaotfload-85bc85c1f116f759c59ef06f27bb37c0d2bb80f6.tar.gz |
[init] handle case for reference loader first
Since it’s the trivial case, expected in 99 % of runs.
Diffstat (limited to 'src/luaotfload-init.lua')
-rw-r--r-- | src/luaotfload-init.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua index f1d1a8e..5b21d70 100644 --- a/src/luaotfload-init.lua +++ b/src/luaotfload-init.lua @@ -292,7 +292,11 @@ local init_main = function () or "reference" fontloader = tostring (fontloader) - if fontloader == "unpackaged" then + if fontloader == "reference" or fontloader == "default" then + logreport ("log", 4, "init", "Using reference fontloader.") + load_fontloader_module (luaotfload.fontloader_package) + + elseif fontloader == "unpackaged" then logreport ("both", 4, "init", "Loading fontloader components individually.") --- The loading sequence is known to change, so this might have to be @@ -359,7 +363,7 @@ local init_main = function () fontloader, path) local _void = require (path) - else --- “reference”, “default” + else logreport ("log", 6, "init", "No match for fontloader spec “%s”.", fontloader) @@ -372,6 +376,9 @@ local init_main = function () ---load_fontloader_module "font-odv.lua" --- <= Devanagari support from Context + logreport ("both", 0, "init", + "Context OpenType loader version “%s”", + fonts.handlers.otf.version) end --- [init_main] local init_cleanup = function (store) |