[dev-context] font-ini.mkvi: \mapfontsize
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Sun Jan 8 12:07:12 CET 2012
Hi Hans,
there is \dimexpr missing otherwise \mapfontsize has no effect.
%\def\font_basics_set_mapped_fontsize#from%
% {\ifcsname\??mappedfontsize#from\endcsname
% \csname\??mappedfontsize#from\endcsname\else#from%
% \fi}
\def\font_basics_set_mapped_fontsize#from%
{\ifcsname\??mappedfontsize\the\dimexpr#from\relax\endcsname
\csname\??mappedfontsize\the\dimexpr#from\relax\endcsname\else#from%
\fi}
Example:
\mapfontsize[12pt][24pt]
\starttext
12pt\par
\definedfont[Serif mo 1]12pt
\stoptext
Wolfgang
More information about the dev-context
mailing list