From e5490055dfd11a6c6f25a2225cdeee6be4d27a61 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 19 Apr 2016 07:14:59 +0200 Subject: [fontloader] sync with Context as of 2016-04-19 --- src/fontloader/misc/fontloader-font-otr.lua | 2 +- src/fontloader/runtime/fontloader-reference.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fontloader') diff --git a/src/fontloader/misc/fontloader-font-otr.lua b/src/fontloader/misc/fontloader-font-otr.lua index e6e7fa2..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 diff --git a/src/fontloader/runtime/fontloader-reference.lua b/src/fontloader/runtime/fontloader-reference.lua index 1595733..e784738 100644 --- a/src/fontloader/runtime/fontloader-reference.lua +++ b/src/fontloader/runtime/fontloader-reference.lua @@ -1,6 +1,6 @@ -- merged file : c:/data/develop/context/sources/luatex-fonts-merged.lua -- parent file : c:/data/develop/context/sources/luatex-fonts.lua --- merge date : 04/18/16 18:53:40 +-- merge date : 04/18/16 22:12:36 do -- begin closure to overcome local limits and interference @@ -9536,7 +9536,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 @@ -9667,7 +9667,7 @@ function readers.getinfo(filename,specification) 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 { -- cgit v1.2.3