summaryrefslogtreecommitdiff
path: root/src/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-04-24 23:29:52 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-04-24 23:29:52 +0200
commit226a72e66462faeaa5052cfd8aed6011d2545247 (patch)
tree3315f46d66a39bbcceef56263bd550ac5f9d3926 /src/luaotfload-database.lua
parentff15eeb08a3148f961b0535ee2fea7ceea85bc1a (diff)
downloadluaotfload-226a72e66462faeaa5052cfd8aed6011d2545247.tar.gz
[colors,conf,db,main,tool] adapt the TeX run code to new configuration
Diffstat (limited to 'src/luaotfload-database.lua')
-rw-r--r--src/luaotfload-database.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 3a4b8b4..6b59aac 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -172,8 +172,7 @@ end
--- XXX this belongs into the initialization file!
local initialize_env = function ()
if not runasscript then
- local paths = config.luaotfload.paths
-
+ local paths = config.luaotfload.paths
local prefix = getwritablepath (paths.names_dir, "")
if not prefix then
luaotfload.error
@@ -189,7 +188,7 @@ local initialize_env = function ()
local lookups_file = filejoin (prefix, paths.lookups_file)
local index_file = filejoin (prefix, paths.index_file)
lookup_path.lua, lookup_path.luc = make_luanames (lookups_file)
- index.lua, index.luc = make_luanames (index_file)
+ index.lua, index.luc = make_luanames (index_file)
else --- running as script, inject some dummies
caches = { }
local dummy_function = function () end
@@ -2888,7 +2887,7 @@ local collect_font_filenames = function ()
local filenames = { }
local bisect = config.luaotfload.misc.bisect
- local max_fonts = config.luaotfload.db.max_fonts or 2^51 --- XXX revisit for lua 5.3 wrt integers
+ local max_fonts = config.luaotfload.db.max_fonts --- XXX revisit for lua 5.3 wrt integers
tableappend (filenames, collect_font_filenames_texmf ())
tableappend (filenames, collect_font_filenames_system ())