summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ctx.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-11-21 16:11:00 +0100
committerHans Hagen <pragma@wxs.nl>2012-11-21 16:11:00 +0100
commit4bc9f650e3e87812fa7daf77db51a7adf37efdb4 (patch)
tree3adbffa2b57cd3e5945962eaa57c5fe6aa5e3210 /tex/context/base/font-ctx.lua
parent5662188aa79108a3678a97d10978f658c0746d01 (diff)
downloadcontext-4bc9f650e3e87812fa7daf77db51a7adf37efdb4.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.lua13
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()