summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-lan.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/typo-lan.lua')
-rw-r--r--tex/context/base/typo-lan.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/tex/context/base/typo-lan.lua b/tex/context/base/typo-lan.lua
index 50927f744..c42d2119e 100644
--- a/tex/context/base/typo-lan.lua
+++ b/tex/context/base/typo-lan.lua
@@ -67,6 +67,8 @@ function frequencies.averagecharwidth(language,font)
return frequencycache[language or "en"][font or currentfont()]
end
-function commands.averagecharwidth(language,font)
- context(frequencycache[language or "en"][font or currentfont()])
-end
+interfaces.implement {
+ name = "averagecharwidth",
+ actions = { frequencies.averagecharwidth, context },
+ arguments = "string"
+}