14 Jan
2015
14 Jan
'15
6:59 p.m.
Am 14.01.2015 um 18:58 schrieb Wolfgang Schuster
: Am 14.01.2015 um 17:50 schrieb Pablo Rodriguez
: Dear list,
I have the following sample:
\showframe \starttext {\setupbodyfont[120pt]My Title} \stoptext
Is there a way to make ConTeXt automatically calculate the size of the \setupbodyfont, so that the passage fits exactly to text width?
\starttext
\WidthSpanningText{My Title}{\textwidth}{Serif}
\WidthSpanningText{My Title}{12cm}{MonoBold}
\WidthSpanningText{My Title}{14cm}{SansItalic}
\stoptext
Another solution is to use the \scale command: \starttext \scale[width=\textwidth]{My Title} \stoptext Wolfgang