Am 01.04.2011 um 00:09 schrieb Thomas A. Schmitz:
On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:
Hi,
in a typescript I need to set sansserif font proportional bigger than serif font. Using "rscale"? As far as I have seen this only works when integers are used for bodyfont:
\starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript
\usetypescript[times] %\setupbodyfont[times,10pt] % <- try this ... \setupbodyfont[times,10.5pt] % <- ... and then this
\starttext
Test \ss{text}
\stoptext
Unfortunately the sizes for bodyfont and footnotes are specified by publisher (10.5pt and 8.5pt).
Is there a chance to get rscale working even for theses decimal fractions?
Steffen
You need:
\starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript
\definebodyfontenvironment[10.5pt]
Ok, but something still is missing .... The bodyfont doesn't get bigger here: \starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript \starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript \definebodyfontenvironment[10.5pt] \usetypescript[times] \setupbodyfont[times,10.5pt] \setupfootnotes[bodyfont={rm,8.5pt}] \definestartstop[quote] [before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont[8.5pt]\setupinterlinespace[line=10.5pt]},after={\stopnarrower}] \starttext Test {\ss text} test\footnote{text {\ss text} test} test. \startquote test {\ss text} \input ward \par \stopquote \stoptext ------- Steffen