diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-29 22:26:45 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-29 22:26:45 +0100 |
commit | e8c12e905db79d0a7cc716ae6d6d02663cbd085e (patch) | |
tree | 825f754d2d03a13d35c8d7ee4b95219514864ddc /src | |
parent | f7f541616aaf77c5f2ecb40a50f72b2e94575675 (diff) | |
download | luaotfload-e8c12e905db79d0a7cc716ae6d6d02663cbd085e.tar.gz |
[conf] ensure correct fontloader is loaded without config file
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-configuration.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua index 57311dc..0be7c14 100644 --- a/src/luaotfload-configuration.lua +++ b/src/luaotfload-configuration.lua @@ -126,8 +126,12 @@ local feature_presets = { --doc]]-- +local default_fontloader = function () + return luaotfloadstatus and luaotfloadstatus.notes.loader or "reference" +end + local registered_loaders = { - default = luaotfloadstatus and luaotfloadstatus.notes.loader or "reference", + default = default_fontloader (), reference = "reference", unpackaged = "unpackaged", context = "context", @@ -198,7 +202,7 @@ local default_config = { definer = "patch", log_level = 0, color_callback = "post_linebreak_filter", - fontloader = "default", + fontloader = default_fontloader (), }, misc = { bisect = false, |