summaryrefslogtreecommitdiff
path: root/src/fontloader
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-18 21:02:06 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-18 21:03:02 +0200
commit8631d1c4944f2cde0ba2dea1e1f0ac92e2538382 (patch)
tree4878f172c60c7c018e06aae0c0e9490b20238fbe /src/fontloader
parent0ed66c28f6f48c8250a903bed9abf6aee6d8dd39 (diff)
downloadluaotfload-8631d1c4944f2cde0ba2dea1e1f0ac92e2538382.tar.gz
[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.
Diffstat (limited to 'src/fontloader')
-rw-r--r--src/fontloader/misc/fontloader-font-otr.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-font-otr.lua b/src/fontloader/misc/fontloader-font-otr.lua
index 7226907..e6e7fa2 100644
--- a/src/fontloader/misc/fontloader-font-otr.lua
+++ b/src/fontloader/misc/fontloader-font-otr.lua
@@ -2167,7 +2167,7 @@ function readers.getinfo(filename,specification) -- string, nil|number|table
info[i] = getinfo(fontdata,i,platformnames,rawfamilynames)
end
return info
- elseif subfont > 1 and subfont <= #subfonts then
+ elseif subfont >= 1 and subfont <= #subfonts then
return getinfo(fontdata,subfont,platformnames,rawfamilynames)
else
return {