diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-04-19 08:28:21 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-04-19 08:28:21 +0200 |
commit | c35210aaaf992793bd111a0bd90e28630c7d2101 (patch) | |
tree | b0706956c6986a8b83d2d62abeeb8a13396605eb /src/fontloader/misc | |
parent | a119b257eb5ad1a9ce9a9015d082f28fd2a3527e (diff) | |
parent | f73ce8ad37e9dab36d7aebf03198586691737afe (diff) | |
download | luaotfload-c35210aaaf992793bd111a0bd90e28630c7d2101.tar.gz |
Merge pull request #333 from phi-gamma/master
latest 2.7 progress
Diffstat (limited to 'src/fontloader/misc')
-rw-r--r-- | src/fontloader/misc/fontloader-font-otr.lua | 4 |
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 { |