diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-03-18 08:03:55 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-03-18 08:03:55 +0100 |
commit | f5dd1ec3517cda47e5a48221d4ff5cfced12ea06 (patch) | |
tree | f27d1546977bae78b33180192cc80eecc568bf4c /src/luaotfload-main.lua | |
parent | 13621b3de330fa9fa847e7f2963369105f663d74 (diff) | |
download | luaotfload-f5dd1ec3517cda47e5a48221d4ff5cfced12ea06.tar.gz |
[fontloader] switch fallback to code from 2014 (works with Luatex 0.76)
Diffstat (limited to 'src/luaotfload-main.lua')
-rw-r--r-- | src/luaotfload-main.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua index 5dd6a74..ee8966c 100644 --- a/src/luaotfload-main.lua +++ b/src/luaotfload-main.lua @@ -101,15 +101,15 @@ luaotfload.log.tex = { --doc]]-- -local min_luatex_version = 79 --- i. e. 0.79 -local use_fallback_loader = false --- for older engines +local min_luatex_version = 79 --- i. e. 0.79 +local fontloader_package = "fontloader" --- default: from current Context if tex.luatexversion < min_luatex_version then warning ("LuaTeX v%.2f is old, v%.2f or later is recommended.", tex.luatexversion / 100, min_luatex_version / 100) warning ("using fallback fontloader -- newer functionality not available") - use_fallback_loader = true + fontloader_package = "tl2014" --- TODO fallback should be configurable too --- we install a fallback for older versions as a safety if not node.end_of_math then local math_t = node.id "math" @@ -309,16 +309,12 @@ tex.attribute[0] = 0 Now that things are sorted out we can finally load the fontloader. - For less current distibutions we ship the code from TL 2013 that should be + For less current distibutions we ship the code from TL 2014 that should be compatible with Luatex 0.76. --doc]]-- -if use_fallback_loader == true then - load_fontloader_module "tl2013" -else - load_fontloader_module "fontloader" -end +load_fontloader_module (fontloader_package) ---load_fontloader_module "font-odv.lua" --- <= Devanagari support from Context |