summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-09-02 00:07:25 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-09-02 00:07:25 +0200
commit1674a5aa95a3305845364daee05c2ec8279e2703 (patch)
tree859b585830798d0ab9eaea3d261486321c3811a0
parente29c39733ad90a0ca354808aef71b1b2e0acc9c9 (diff)
downloadluaotfload-1674a5aa95a3305845364daee05c2ec8279e2703.tar.gz
[db] adjust index field for non tt collections
-rw-r--r--luaotfload-database.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index a148940..e5627ef 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1559,7 +1559,6 @@ local compare_timestamps = function (fullname,
if currenttimestamp == targettimestamp
and not targetentrystatus.index [1]
then
-
--- copy old namedata into new
for _, currentindex in next, currententrystatus.index do
@@ -1590,7 +1589,13 @@ local insert_fullinfo = function (fullname,
targetentrystatus,
info)
- local subfont = n_font and n_font - 1 or false
+ local subfont
+ if n_font ~= false then
+ subfont = n_font - 1
+ else
+ subfont = false
+ n_font = 1
+ end
local fullinfo = loader (fullname, subfont,
location, basename,
@@ -2567,6 +2572,7 @@ local retrieve_namedata = function (currentnames,
dry_run,
n_rawnames,
n_newnames)
+
local rawnames, new = scan_texmf_fonts (currentnames,
targetnames,
dry_run)