summaryrefslogtreecommitdiff
path: root/src/fontloader/misc/fontloader-font-otr.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-19 08:28:21 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-19 08:28:21 +0200
commitc35210aaaf992793bd111a0bd90e28630c7d2101 (patch)
treeb0706956c6986a8b83d2d62abeeb8a13396605eb /src/fontloader/misc/fontloader-font-otr.lua
parenta119b257eb5ad1a9ce9a9015d082f28fd2a3527e (diff)
parentf73ce8ad37e9dab36d7aebf03198586691737afe (diff)
downloadluaotfload-c35210aaaf992793bd111a0bd90e28630c7d2101.tar.gz
Merge pull request #333 from phi-gamma/master
latest 2.7 progress
Diffstat (limited to 'src/fontloader/misc/fontloader-font-otr.lua')
-rw-r--r--src/fontloader/misc/fontloader-font-otr.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontloader/misc/fontloader-font-otr.lua b/src/fontloader/misc/fontloader-font-otr.lua
index 7226907..3542d18 100644
--- a/src/fontloader/misc/fontloader-font-otr.lua
+++ b/src/fontloader/misc/fontloader-font-otr.lua
@@ -2020,7 +2020,7 @@ local function loadfontdata(specification)
ttcversion = ttcversion,
nofsubfonts = nofsubfonts,
}
- for i=1,fontdata.nofsubfonts do
+ for i=1,nofsubfonts do
subfonts[i] = readdata(f,offsets[i],specification)
end
end
@@ -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 {