summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ctx.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-03-28 11:15:04 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-03-28 11:15:04 +0100
commit4951780633cb4bd2174478f80a0f1c6e355f1fdf (patch)
treec3b2f84d8a50018a4c60d1fcca298f88d8f43a70 /tex/context/base/font-ctx.lua
parente220fe3a81fb86205be40d81c52818fa5063e56f (diff)
downloadcontext-4951780633cb4bd2174478f80a0f1c6e355f1fdf.tar.gz
2015-03-28 10:33:00
Diffstat (limited to 'tex/context/base/font-ctx.lua')
-rw-r--r--tex/context/base/font-ctx.lua32
1 files changed, 27 insertions, 5 deletions
diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua
index a00cc228e..2d0e99653 100644
--- a/tex/context/base/font-ctx.lua
+++ b/tex/context/base/font-ctx.lua
@@ -2270,12 +2270,34 @@ implement {
arguments = "string"
}
-function commands.cleanfontname (name) context(names.cleanname(name)) end
+implement {
+ name = "cleanfontname",
+ actions = { names.cleanname, context },
+ arguments = "string"
+}
+
+implement {
+ name = "fontlookupinitialize",
+ actions = names.lookup,
+ arguments = "string",
+}
+
+implement {
+ name = "fontlookupnoffound",
+ actions = { names.noflookups, context },
+}
+
+implement {
+ name = "fontlookupgetkeyofindex",
+ actions = { names.getlookupkey, context },
+ arguments = { "string", "integer"}
+}
-function commands.fontlookupinitialize (name) names.lookup(name) end
-function commands.fontlookupnoffound () context(names.noflookups()) end
-function commands.fontlookupgetkeyofindex(key,index) context(names.getlookupkey(key,index)) end
-function commands.fontlookupgetkey (key) context(names.getlookupkey(key)) end
+implement {
+ name = "fontlookupgetkey",
+ actions = { names.getlookupkey, context },
+ arguments = "string"
+}
-- this might move to a runtime module: