diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-25 11:47:01 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-25 11:47:01 -0700 |
commit | 0812209b5d7566de272739ada26eca08f216b876 (patch) | |
tree | d2dddab1c57956fabfb89c443267fceb6d8e7a0a /luaotfload-database.lua | |
parent | 6c668c8f2624a22a1f4ddd99d9f561ddf2f4bf0a (diff) | |
parent | 54aa74688bba09a538a98d6852fc3848c6c5f52c (diff) | |
download | luaotfload-0812209b5d7566de272739ada26eca08f216b876.tar.gz |
Merge pull request #126 from phi-gamma/master
improved afm integration
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r-- | luaotfload-database.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index d8c934d..2dbc20c 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -810,8 +810,7 @@ resolve = function (_, _, specification) -- the 1st two parameters are used by C --- but it’s not a table, e.g. it contains an integer. if not fonts_reloaded then return reload_db("invalid database; not a table", - resolve, nil, nil, specification - ) + resolve, nil, nil, specification) end --- unsucessfully reloaded; bail return specification.name, false, false @@ -1004,12 +1003,21 @@ end --- string -> ('a -> 'a) -> 'a list -> 'a reload_db = function (why, caller, ...) - report ("both", 1, "db", "Reload initiated; reason: %q", why) + local namedata = names.data + local formats = tableconcat (namedata.formats, ",") + + report ("both", 1, "db", + "Reload initiated (formats: %s); reason: %q", + formats, why) + + set_font_filter (formats) names.data = update_names (names.data, false, false) + if names.data then fonts_reloaded = true return caller (...) end + report ("both", 0, "db", "Database update unsuccessful.") end |