font-ini.mkvi: \definefrozenfont
Hi Hans, is there any reason to keep \definefrozenfont because it doesn’t work. \definefrozenfont[test][Sans sa 1] \starttext \test Test % \expandafter\let\csname\lastfontidentifier\expandafter\endcsname\csname\rawfontidentifier\endcsname \switchtobodyfont[20pt] \test Test \stoptext Wolfgang
On 8-1-2012 15:18, Wolfgang Schuster wrote:
Hi Hans,
is there any reason to keep \definefrozenfont because it doesn’t work.
\definefrozenfont[test][Sans sa 1]
\starttext
\test Test % \expandafter\let\csname\lastfontidentifier\expandafter\endcsname\csname\rawfontidentifier\endcsname
\switchtobodyfont[20pt]
\test Test
\stoptext
\def\font_basics_define_frozen_font[#name][#specification][#settings]% {\begingroup \font_basics_define_font[#name][#specification][#settings]% \csname#name\endcsname \expandafter\endgroup \expandafter\let\csname#name\endcsname\lastrawfontcall} of course one might wonder if it ever gets used ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 08.01.2012 um 18:09 schrieb Hans Hagen:
On 8-1-2012 15:18, Wolfgang Schuster wrote:
Hi Hans,
is there any reason to keep \definefrozenfont because it doesn’t work.
\definefrozenfont[test][Sans sa 1]
\starttext
\test Test % \expandafter\let\csname\lastfontidentifier\expandafter\endcsname\csname\rawfontidentifier\endcsname
\switchtobodyfont[20pt]
\test Test
\stoptext
\def\font_basics_define_frozen_font[#name][#specification][#settings]% {\begingroup \font_basics_define_font[#name][#specification][#settings]% \csname#name\endcsname \expandafter\endgroup \expandafter\let\csname#name\endcsname\lastrawfontcall}
of course one might wonder if it ever gets used
I don’t think so because this bug is also in the mkii code. Wolfgang
On 8-1-2012 19:03, Wolfgang Schuster wrote:
of course one might wonder if it ever gets used
I don’t think so because this bug is also in the mkii code.
Then I wonder where I use it myself ... it's actually faster which might matter in a critical workflow with many font switches. Let's keep it as undocumented feature. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster