diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/typo-lan.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/typo-lan.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/typo-lan.lua b/Master/texmf-dist/tex/context/base/typo-lan.lua index 50927f74493..c42d2119eb6 100644 --- a/Master/texmf-dist/tex/context/base/typo-lan.lua +++ b/Master/texmf-dist/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" +} |