diff options
Diffstat (limited to 'tex/generic')
-rw-r--r-- | tex/generic/context/luatex/luatex-fonts-merged.lua | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index f1a4d0c9b..5b44a6e0c 100644 --- a/tex/generic/context/luatex/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 10/13/11 21:36:08 +-- merge date : 10/14/11 22:47:14 do -- begin closure to overcome local limits and interference @@ -1086,6 +1086,11 @@ function table.unique(old) return new end +-- function table.sorted(t,...) +-- table.sort(t,...) +-- return t -- still sorts in-place +-- end + end -- closure do -- begin closure to overcome local limits and interference @@ -3686,7 +3691,7 @@ function constructors.scale(tfmdata,specification) chr[italickey] = vi*hdelta end elseif hasitalic then - local vi = description.italic or character.italic -- why character + local vi = description.italic -- or character.italic hm, already scaled ! if vi and vi ~= 0 then chr[italickey] = vi*hdelta end @@ -12176,27 +12181,27 @@ features (esp in virtual fonts) so let's not do that now.</p> specification yet.</p> --ldx]]-- --- not in context, at least not now: --- --- function definers.applypostprocessors(tfmdata) --- local postprocessors = tfmdata.postprocessors --- if postprocessors then --- for i=1,#postprocessors do --- local extrahash = postprocessors[i](tfmdata) -- after scaling etc --- if type(extrahash) == "string" and extrahash ~= "" then --- -- e.g. a reencoding needs this --- extrahash = gsub(lower(extrahash),"[^a-z]","-") --- tfmdata.properties.fullname = format("%s-%s",tfmdata.properties.fullname,extrahash) --- end --- end --- end --- return tfmdata --- end +-- very experimental: function definers.applypostprocessors(tfmdata) + local postprocessors = tfmdata.postprocessors + if postprocessors then + for i=1,#postprocessors do + local extrahash = postprocessors[i](tfmdata) -- after scaling etc + if type(extrahash) == "string" and extrahash ~= "" then + -- e.g. a reencoding needs this + extrahash = gsub(lower(extrahash),"[^a-z]","-") + tfmdata.properties.fullname = format("%s-%s",tfmdata.properties.fullname,extrahash) + end + end + end return tfmdata end +-- function definers.applypostprocessors(tfmdata) +-- return tfmdata +-- end + function definers.loadfont(specification) local hash = constructors.hashinstance(specification) local tfmdata = loadedfonts[hash] -- hashes by size ! |