summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/supp-fun.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/supp-fun.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/supp-fun.tex25
1 files changed, 14 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/base/supp-fun.tex b/Master/texmf-dist/tex/context/base/supp-fun.tex
index b3b27032826..6b26437038e 100644
--- a/Master/texmf-dist/tex/context/base/supp-fun.tex
+++ b/Master/texmf-dist/tex/context/base/supp-fun.tex
@@ -22,7 +22,7 @@
\ifx \undefined \writestatus \input supp-mis.tex \relax \fi
-\writestatus{loading}{Context Support Macros / Fun Stuff}
+\writestatus{loading}{ConTeXt Support Macros / Fun Stuff}
\ifx\definefont\undefined
\def\definedfont[#1]{\font\temp#1\relax\temp}
@@ -346,8 +346,8 @@
\forgetall
\bgroup
#1%
- \setbox0\box\voidb@x
- \setbox2\box\voidb@x
+ \setbox0\emptybox
+ \setbox2\emptybox
\def\grabfirstline##1 %
{\setbox2\hbox
{\ifvoid0
@@ -356,8 +356,8 @@
\unhcopy0\ {#4{##1}}%
\fi}%
\ifdim\wd2=\zeropoint
- \setbox0\box\voidb@x
- \setbox2\box\voidb@x
+ \setbox0\emptybox
+ \setbox2\emptybox
\@EA\grabfirstline
\else\ifdim\wd2>\hsize
\hbox to \hsize{\strut\unhbox0}#2\egroup
@@ -377,7 +377,7 @@
%D \definecolor[FunnyColor][r=\FunnyR,g=\FunnyG,b=\FunnyB]%
%D \color[FunnyColor]}
%D
-%D \TreatFirstLine {\bf} {} {\FunnyCommand} {\FunnyCommand}
+%D %\TreatFirstLine {\bf} {} {\FunnyCommand} {\FunnyCommand}
%D The third and fourth argument can be used to gain special
%D effects on the individual words. Of course one needs ...
%D \stopbuffer
@@ -560,7 +560,7 @@
\def\NormalizeFontSize#1#2#3#4#5%
{\bgroup
- \dimen0=#4% #4 can be \ht0 or so
+ \dimen0=#4% #4 can be \ht0 or so
\setbox0\hbox{\definedfont[#5 at 5pt]#3}% 10pt
\ifdim\wd0>\zeropoint
\dimen2=#10 % #1 is \wd or \ht
@@ -573,10 +573,13 @@
\else
\dimen0\bodyfontsize
\fi
- \definedfont[#5 at \the\dimen0]%
- \expandafter
- \egroup
- \expandafter\font\expandafter#2\fontname\font\relax}
+ % mkii
+ % \definedfont[#5 at \the\dimen0]%
+ % \expandafter
+ % \egroup
+ % \expandafter\font\expandafter#2\fontname\font\relax}
+ % mkiv safe (file: prefix etc)
+ \expanded{\egroup\def\noexpand#2{\definedfont[#5 at \the\dimen0]}}}
%D Afterwards, we have access to the calculated size by: