From 8631d1c4944f2cde0ba2dea1e1f0ac92e2538382 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 18 Apr 2016 21:02:06 +0200 Subject: [db,fontloader] fix subfont table handling (by Dohyun Kim) TTC subfonts must be considered if there is at least one subfont. Discovered and fixed by @dohyunkim; the fix for ``font-otr.lua`` goes upstream. --- src/luaotfload-database.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/luaotfload-database.lua') diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index 4944de1..0f8e56b 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -1842,7 +1842,7 @@ local read_font_names = function (fullname, --- 5) check for subfonts and process each of them - if type (info) == "table" and #info > 1 then --- ttc + if type (info) == "table" and #info >= 1 then --- ttc local success = false --- true if at least one subfont got read -- cgit v1.2.3 From 5ce60cc98a304d837dfa451dd7d389dbd5cfaa77 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 19 Apr 2016 08:09:38 +0200 Subject: [*] shred 2014 fontloader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This one hasn’t been touched for ages. The will be no compatibility loader this year. For testing, creating a loader on the fly from the Git repos is sufficient. --- src/luaotfload-database.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'src/luaotfload-database.lua') diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index 0f8e56b..b06f3d5 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -360,7 +360,6 @@ This is a sketch of the luaotfload db: conflicts : { barename : int; basename : int }; // filename conflict with font at index; happens with subfonts familyname : string; // sanitized name of the font family the font belongs to, usually from the names table fontname : string; // sanitized name of the font - fontstyle_name : string; // the fontstyle_name field returned by fontloader.info() format : string; // "otf" | "ttf" | "dfont" | "pfa" | "pfb" | "afm" fullname : string; // sanitized full name of the font including style modifiers fullpath : string; // path to font in filesystem -- cgit v1.2.3