From d48764d88ac59aa9b0130f1049892296a3eb4684 Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Wed, 1 Apr 2015 12:15:05 +0200 Subject: 2015-04-01 12:02:00 --- tex/context/base/font-ctx.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tex/context/base/font-ctx.lua') diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua index 0a0e5eab6..d55bf2dad 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -1484,6 +1484,24 @@ end mappings.reset() -- resets the default file +implement { + name = "loadmapfile", + actions = mappings.loadfile, + arguments = "string" +} + +implement { + name = "loadmapline", + actions = mappings.loadline, + arguments = "string" +} + +implement { + name = "resetmapfiles", + actions = mappings.reset, + arguments = "string" +} + -- we need an 'do after the banner hook' -- => commands @@ -1770,6 +1788,12 @@ function fonts.definetypeface(name,t) ctx_dofastdefinetypeface(name, shortcut, shape, size, settings) end +implement { + name = "definetypeface", + actions = fonts.definetypeface, + arguments = { "string", "string" } +} + function fonts.current() -- todo: also handle name return fontdata[currentfont()] or fontdata[0] end -- cgit v1.2.3