From f210bce174e1f2f05305ab03e88e120a1cbfc4da Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 5 Mar 2020 00:48:46 +0000 Subject: context (from cont-tmf.zip of Feb 17 16:00, size 116339406) git-svn-id: svn://tug.org/texlive/trunk@54086 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/context/base/mkiv/font-mis.lua | 57 ++++++++++++---------- 1 file changed, 30 insertions(+), 27 deletions(-) (limited to 'Master/texmf-dist/tex/context/base/mkiv/font-mis.lua') diff --git a/Master/texmf-dist/tex/context/base/mkiv/font-mis.lua b/Master/texmf-dist/tex/context/base/mkiv/font-mis.lua index c75b9298454..fe972114f47 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/font-mis.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/font-mis.lua @@ -21,38 +21,41 @@ local readers = otf.readers if readers then - otf.version = otf.version or 3.107 + otf.version = otf.version or 3.111 otf.cache = otf.cache or containers.define("fonts", "otl", otf.version, true) function fonts.helpers.getfeatures(name,save) local filename = resolvers.findfile(name) or "" if filename ~= "" then --- local name = file.removesuffix(file.basename(filename)) --- local cleanname = containers.cleanname(name) --- local data = containers.read(otf.cache,cleanname) --- if data then --- readers.unpack(data) --- else --- data = readers.loadfont(filename) -- we can do a more minimal load --- -- if data and save then --- -- -- keep this in sync with font-otl --- -- readers.compact(data) --- -- readers.rehash(data,"unicodes") --- -- readers.addunicodetable(data) --- -- readers.extend(data) --- -- readers.pack(data) --- -- -- till here --- -- containers.write(otf.cache,cleanname,data) --- -- end --- end --- if not data then --- data = readers.loadfont(filename) -- we can do a more minimal load --- end --- if data then --- readers.unpack(data) --- end -local data = otf.load(filename) - return data and data.resources and data.resources.features + -- local name = file.removesuffix(file.basename(filename)) + -- local cleanname = containers.cleanname(name) + -- local data = containers.read(otf.cache,cleanname) + -- if data then + -- readers.unpack(data) + -- else + -- data = readers.loadfont(filename) -- we can do a more minimal load + -- -- if data and save then + -- -- -- keep this in sync with font-otl + -- -- readers.compact(data) + -- -- readers.rehash(data,"unicodes") + -- -- readers.addunicodetable(data) + -- -- readers.extend(data) + -- -- readers.pack(data) + -- -- -- till here + -- -- containers.write(otf.cache,cleanname,data) + -- -- end + -- end + -- if not data then + -- data = readers.loadfont(filename) -- we can do a more minimal load + -- end + -- if data then + -- readers.unpack(data) + -- end + local data = otf.load(filename) + local resources = data and data.resources + if resources then + return data.resources.features, data.resources.foundtables, data + end end end -- cgit v1.2.3