diff options
author | Marius <mariausol@gmail.com> | 2012-11-21 17:20:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-11-21 17:20:15 +0200 |
commit | 6ff1b85c8ffeed52b161c7242d4bc5519f244077 (patch) | |
tree | 497fb07f06b87f3980f4c8d516bb36911006799c /tex/context/base/font-ctx.lua | |
parent | be67c402473c7a5c3c5dde681b61f4894505fee9 (diff) | |
download | context-6ff1b85c8ffeed52b161c7242d4bc5519f244077.tar.gz |
beta 2012.11.21 16:11
Diffstat (limited to 'tex/context/base/font-ctx.lua')
-rw-r--r-- | tex/context/base/font-ctx.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua index 1b3384833..d4baec7bd 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -1207,10 +1207,11 @@ mappings.reset() -- resets the default file local function nametoslot(name) local t = type(name) if t == "string" then - local tfmdata = fonts.hashes.identifiers[currentfont()] - local shared = tfmdata and tfmdata.shared - local fntdata = shared and shared.rawdata - return fntdata and fntdata.resources.unicodes[name] +-- local tfmdata = fontdata[currentfont()] +-- local shared = tfmdata and tfmdata.shared +-- local fntdata = shared and shared.rawdata +-- return fntdata and fntdata.resources.unicodes[name] -- could also be in hashes + return resources[true].unicodes[name] elseif t == "number" then return n end @@ -1228,7 +1229,7 @@ function loggers.reportdefinedfonts() local parameters = data.parameters or { } tn = tn + 1 t[tn] = { - format("%03i",id or 0), + format("%03i",id or 0), format("%09i",parameters.size or 0), properties.type or "real", properties.format or "unknown", @@ -1236,7 +1237,7 @@ function loggers.reportdefinedfonts() properties.psname or "", properties.fullname or "", } -report_status("%s: %s",properties.name,concat(sortedkeys(data)," ")) + report_status("%s: %s",properties.name,concat(sortedkeys(data)," ")) end formatcolumns(t," ") report_status() |