diff options
author | Marius <mariausol@gmail.com> | 2010-12-22 15:20:12 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-12-22 15:20:12 +0200 |
commit | 6c08d64138b8abded375c440198016417d407f4e (patch) | |
tree | ac7f00c2b72afeb2b587f8c40fd89cb81d7a5ad3 /tex/context/base/font-ini.mkiv | |
parent | 6d053ffca163b4e5880fdb8429fc7f7eb0184235 (diff) | |
download | context-6c08d64138b8abded375c440198016417d407f4e.tar.gz |
beta 2010.12.22 14:07
Diffstat (limited to 'tex/context/base/font-ini.mkiv')
-rw-r--r-- | tex/context/base/font-ini.mkiv | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/tex/context/base/font-ini.mkiv b/tex/context/base/font-ini.mkiv index 70ea02a36..932f471ef 100644 --- a/tex/context/base/font-ini.mkiv +++ b/tex/context/base/font-ini.mkiv @@ -165,9 +165,11 @@ % \newtoks \everydefinedfont % not ot be confused with \everydefinefont +\let\thedefinedfont\relax + \def\dodefinedfont[#1]% {\iffirstargument\definefont[thedefinedfont][#1]\fi % we can speed this one up - \csname thedefinedfont\endcsname + \thedefinedfont \the\everydefinedfont} \unexpanded\def\definedfont @@ -4185,22 +4187,12 @@ \def\dolookupgetkey #1{\ctxlua{tex.write(fonts.names.getlookupkey("#1"))}} \def\cleanfontname #1{\ctxlua{fonts.cleanname("#1")}} -\protect \endinput - -% \startluacode -% function commands.doifelsecurrentfonthasfeature(name) -% local f = fonts.identifiers[font.current()] -% f = f and f.shared -% f = f and f.otfdata -% f = f and f.luatex -% f = f and f.features -% commands.doifelse(f and (f.gpos[name] or f.gsub[name])) -% end -% \stopluacode - -% \def\doifelsecurrentfonthasfeature#1% -% {\ctxlua{commands.doifelsecurrentfonthasfeature("#1")}} - % \doifelsecurrentfonthasfeature{smcp}{YES}{NO} % \doifelsecurrentfonthasfeature{crap}{YES}{NO} % \doifelsecurrentfonthasfeature{kern}{YES}{NO} + +\def\doifelsecurrentfonthasfeature#1% + {\ctxlua{commands.doifelsecurrentfonthasfeature("#1")}} + +\protect \endinput + |