diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-10-02 22:03:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-10-02 22:03:00 +0200 |
commit | 08f8bbb60ad11fe3fe1b5632b2eca97422c5bf8c (patch) | |
tree | 1ea0d9f304ed82d113e109c4f17277dd062d7f93 /tex/context/base/font-ctx.lua | |
parent | df4e78545a9a7e02cca523a2912aa1684f6867c6 (diff) | |
download | context-08f8bbb60ad11fe3fe1b5632b2eca97422c5bf8c.tar.gz |
beta 2012.10.02 22:03
Diffstat (limited to 'tex/context/base/font-ctx.lua')
-rw-r--r-- | tex/context/base/font-ctx.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua index 4961c4ae8..7d4fa35db 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -8,6 +8,9 @@ if not modules then modules = { } end modules ['font-ctx'] = { -- At some point I will clean up the code here so that at the tex end -- the table interface is used. +-- +-- Todo: make a proper 'next id' mechanism (register etc) or wait till 'true' +-- in virtual fonts indices is implemented. local context, commands = context, commands @@ -1007,7 +1010,11 @@ function commands.definefont_two(global,cs,str,size,inheritancemode,classfeature end -- texsetcount("global","lastfontid",lastfontid) - if mathsize then + if not mathsize then + -- forget about it + elseif mathsize == 0 then + lastmathids[1] = lastfontid + else lastmathids[mathsize] = lastfontid end -- |