Syntax (autogenerated)
| \definesymbol[...][...][...] | |
| [...] | name |
| [...] | name |
| [...] | command |
Syntax
| \definesymbol[...][...] | |
| [...] | name |
| [...] | text |
Description
Example
% the following example shows how to define symbols which scale with the % font used: \definefontsynonym[Dingbats][uzdr] \definesymbol[box][\getglyph{Dingbats}{\char113}] \definesymbol[boxChecked][\getglyph{Dingbats}{\char113\kern-.66em\raise.25ex\hbox{\char51}}] \def\Check{{\tfa\symbol[box]}} \def\Checked{{\tfa\symbol[boxChecked]}}
Example
This example only works if your ConTeXt distribution has the file uzdr.afm, which is the Zapf Dingbats in an old font file format. TeXlive has that file, but the ConTeXt standalone distribution does not provide it by default. Compile this example with TeXlive to see the check mark, the box, and the checked boxes in different sizes.
-
\definefontfeature[dingbats][mode=base, goodies=dingbats, unicoding=yes] \definefontsynonym[ZapfDingbats][file:uzdr.afm][features=dingbats] \definesymbol[box][\getnamedglyphdirect{ZapfDingbats*dingbats}{a203}] \definesymbol[check][\getnamedglyphdirect{ZapfDingbats*dingbats}{a19}] \definesymbol[boxChecked] [\getnamedglyphdirect{ZapfDingbats*dingbats}{a203} \kern-1em\raise0.25ex\hbox{% \getnamedglyphdirect{ZapfDingbats*dingbats}{a19}}] \def\Box{\symbol[box]} \def\Check{\symbol[check]} This is a box: \Box This is a check: \Check {\tf tf: \symbol[boxChecked]} {\tfa tfa: \symbol[boxChecked]} {\tfb tfb: \symbol[boxChecked]} {\tfc tfc: \symbol[boxChecked]} {\tfd tfd: \symbol[boxChecked]}
-
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: