summaryrefslogtreecommitdiff
path: root/tex/context/base/font-sym.mkvi
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-01-24 12:40:18 +0200
committerMarius <mariausol@gmail.com>2012-01-24 12:40:18 +0200
commit61f9cff70fd57ae1be9208820b4d31bd7152c785 (patch)
tree393a2d0c960552d2bd29c1c1bdbc0a749d177bb3 /tex/context/base/font-sym.mkvi
parent6371f988d54dd0bec1c613110df77e5be103591f (diff)
downloadcontext-61f9cff70fd57ae1be9208820b4d31bd7152c785.tar.gz
beta 2012.01.24 11:11
Diffstat (limited to 'tex/context/base/font-sym.mkvi')
-rw-r--r--tex/context/base/font-sym.mkvi11
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/font-sym.mkvi b/tex/context/base/font-sym.mkvi
index 1ce76fc0b..68237c073 100644
--- a/tex/context/base/font-sym.mkvi
+++ b/tex/context/base/font-sym.mkvi
@@ -228,4 +228,15 @@
%D After which the font is active and the baselines and
%D struts are set.
+%D \macros{doiffontcharelse}
+
+\unexpanded\def\doiffontcharelse#specification#unicode% this could be a direct lua call
+ {\begingroup
+ \font_basics_define_font_without_parameters{thedefinedfont}{#specification}%
+ \iffontchar\font#unicode\relax
+ \endgroup\expandafter\firstoftwoarguments
+ \else
+ \endgroup\expandafter\secondoftwoarguments
+ \fi}
+
\protect \endinput