* Fontsize
@ 2008-07-20 8:02 Ulrich Dirr
2008-07-28 6:33 ` Fontsize Wolfgang Schuster
2008-08-11 8:33 ` Fontsize Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Dirr @ 2008-07-20 8:02 UTC (permalink / raw)
To: ConTeXt Mailing List
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fontsize
2008-07-20 8:02 Fontsize Ulrich Dirr
@ 2008-07-28 6:33 ` Wolfgang Schuster
2008-08-11 8:33 ` Fontsize Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2008-07-28 6:33 UTC (permalink / raw)
To: ud, mailing list for ConTeXt users
On Sun, Jul 20, 2008 at 10:02 AM, Ulrich Dirr <ud@mucschach.de> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fontsize
2008-07-20 8:02 Fontsize Ulrich Dirr
2008-07-28 6:33 ` Fontsize Wolfgang Schuster
@ 2008-08-11 8:33 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2008-08-11 8:33 UTC (permalink / raw)
To: ud, mailing list for ConTeXt users
On Sun, Jul 20, 2008 at 10:02 AM, Ulrich Dirr <ud@mucschach.de> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-11 8:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 8:02 Fontsize Ulrich Dirr
2008-07-28 6:33 ` Fontsize Wolfgang Schuster
2008-08-11 8:33 ` Fontsize Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).