Hi, is it possible now (with luatex or mkiv) to typeset a document in bp? I've tried \setupbodyfont[9bp] but the resulting pdf uses 8,97bp which means 9pt (TeX points)? Ulrich
On Sun, Jul 20, 2008 at 10:02 AM, Ulrich Dirr
Hi,
is it possible now (with luatex or mkiv) to typeset a document in bp? I've tried \setupbodyfont[9bp] but the resulting pdf uses 8,97bp which means 9pt (TeX points)?
\chardef\fontdigits=2 \setupbodyfont[9bp] \starttext Text in nearly 9 bigpoints. \stoptext Wolfgang
On Sun, Jul 20, 2008 at 10:02 AM, Ulrich Dirr
Hi,
is it possible now (with luatex or mkiv) to typeset a document in bp? I've tried \setupbodyfont[9bp] but the resulting pdf uses 8,97bp which means 9pt (TeX points)?
Yes and no, you're restricted to 2 digits after the decimal point, exact results are only possible with a short modification. \unprotect \def\normalizebodyfontsize#1\to#2% {\scratchdimen#1\relax \ifcase\fontdigits\advance\scratchdimen.5\points\fi \@EA\@EA\@EA\donormalizedbodyfontsize\@EA\WITHOUTPT\the\scratchdimen00000\to#2} \def\donormalizedbodyfontsize#1.#2#3#4#5#6#7\to#8% \points ? {\edef#8% {#1% \ifcase\fontdigits\or \ifcase#2 \else.#2\fi % and not: \ifcase#2\else ... \or \ifcase#2#3 \else.#2\ifcase#3 \else#3\fi\fi % not: \ifcase#2#3\else ... \or \ifcase#2#3#4 \else.#2#3#4\fi \or \ifcase#2#3#4#5 \else.#2#3#4#5\fi \else \ifcase#2#3#4#5#6 \else.#2#3#4#5#6\fi \fi \s!pt}} \protect \chardef\fontdigits=5 \setupbodyfont[9bp] \showgrid \starttext \input ward \the\bodyfontsize \scratchdimen=9bp \the\scratchdimen \stoptext Wolfgang
participants (2)
-
Ulrich Dirr
-
Wolfgang Schuster