Skip to content

Commit a6b6119

Browse files
committed
Make name database loading faster
1 parent 4d697a0 commit a6b6119

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/luaotfload-database.lua

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,18 +1700,13 @@ local function ot_fullinfo (filename,
17001700
format,
17011701
info)
17021702

1703-
local metadata = load_font_file (filename, subfont)
1704-
if not metadata then
1705-
return nil
1706-
end
1707-
1708-
local rawinfo = get_raw_info (metadata, basename)
1709-
local nametable = get_english_names (metadata)
1703+
local rawinfo = get_raw_info (info, basename)
1704+
local nametable = get_english_names (info)
17101705
local namedata = organize_namedata (rawinfo,
17111706
nametable,
17121707
basename,
17131708
info)
1714-
local style = organize_styledata (metadata,
1709+
local style = organize_styledata (info,
17151710
rawinfo)
17161711
local res = {
17171712
file = { base = basename,

0 commit comments

Comments
 (0)