diff options
author | Marius <mariausol@gmail.com> | 2011-07-13 23:40:25 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-07-13 23:40:25 +0300 |
commit | 3dd416f677074c27a248e3433695a6fe8c13ef69 (patch) | |
tree | 20c4a573a64f2079e2e3d3fe93b004af3caf7b2f /tex/context/base/font-col.lua | |
parent | 1ea50dab7f30289214b661f2cbcf53e97e6af0b6 (diff) | |
download | context-3dd416f677074c27a248e3433695a6fe8c13ef69.tar.gz |
beta 2011.07.13 20:14
Diffstat (limited to 'tex/context/base/font-col.lua')
-rw-r--r-- | tex/context/base/font-col.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tex/context/base/font-col.lua b/tex/context/base/font-col.lua index 95e390ae2..b5437e249 100644 --- a/tex/context/base/font-col.lua +++ b/tex/context/base/font-col.lua @@ -88,7 +88,9 @@ function collections.define(name,font,ranges,details) end end -function collections.stage_one(name) +-- todo: provide a lua variant (like with definefont) + +function collections.clone_one(name) local last = font.current() if trace_collecting then report_fonts("def: registering font %s with name %s",last,name) @@ -96,7 +98,7 @@ function collections.stage_one(name) list[#list+1] = last end -function collections.stage_two(name) +function collections.clone_two(name) statistics.starttiming(fonts) local d = definitions[name] local t = { } @@ -221,3 +223,12 @@ function collections.process(head) -- this way we keep feature processing return head, false end end + +-- interface + +commands.definefontcollection = collections.define +commands.resetfontcollection = collections.reset +commands.preparefontcollection = collections.prepare +commands.fontcollectionmessage = collections.message +commands.clonefontcollection_one = collections.clone_one +commands.clonefontcollection_two = collections.clone_two |