[XeTeX] Using relative font size in XeLaTeX

Peter Dyballa Peter_Dyballa at Web.DE
Sat Feb 7 14:04:17 CET 2009


Am 07.02.2009 um 12:43 schrieb Benct Philip Jonsson:

> Peter Dyballa wrote:
>> Am 06.02.2009 um 17:46 schrieb Gareth Hughes:
>>
>>> \fontspec[Scale=1.4]
>>
>>
>> The refers to the text size as given in the \documentclass line's
>> options.
>>
>
> It's even better than that: if you say
> \newfontfamily\MyFont[Scale=1.4]{My Font}
> will cause relative scaling so that text
> in \MyFont following a command like \Large
> will be 1.4 times the size of ordinary
> \Large text.  Since that may not be what one
> wants I thought it should be pointed out.
>


That's the expected behaviour! \Large is derived by some factor  
(1.44) from normal or default size as given by the preamble. When the  
body's text is \Large the footnote's text is still quite small. When  
everything is scaled, then the footnote's text is also automatically  
enlarged (5 pt -> 7 pt, 6 pt -> 8.4 pt).

Here is an excerpt from a presentation showing font sizes for 10, 11,  
and 12 pt defaults (the last column shows the resolution of the PK  
files):

Größenoptionen          & \dSpaltec{10pt}               \\\hline\hline
                         &\kl{Größe}&\kl{Skala}&\kl{Font}&\magg&\kl 
{\DPI}\\\hline
\Punkt{tiny}		&   5pt    &    500   &  cmr5   & 273 & 600 &  273 \\
\Punkt{scriptsize}	&   7pt    &    700   &  cmr7   & 382 & 600 &  382 \\
\Punkt{footnotesize}	&   8pt    &    800   &  cmr8   & 436 & 600 &   
436 \\
\Punkt{small}		&   9pt    &    900   &  cmr9   & 491 & 600 &  491 \\
\Punkt{normalsize}	&  10pt    &   1000   &  cmr10  & 545 & 600 &  545 \\
\Punkt{large}		&  12pt    &   1200   &  cmr12  &  55 & 600 &  655 \\
\Punkt{Large}		&  14.4pt  &   1440   &         & 185 & 600 &  785 \\
\Punkt{LARGE}		&  17.28pt &   1728   &  cmr17  & 343 & 600 &  943 \\
\Punkt{huge}		&  20.74pt &   2074   &         & 531 & 600 & 1131 \\
\Punkt{Huge}		&  24.88pt &   2488   &         & 157 & 600 & 1357 \\
%% 11pt
\Punkt{tiny}		&   6pt    &    600   &  cmr5   & 327 & 600 &  327 \\
\Punkt{scriptsize}	&   8pt    &    800   &  cmr8   & 436 & 600 &  436 \\
\Punkt{footnotesize}	&   9pt    &    900   &  cmr9   & 491 & 600 &   
491 \\
\Punkt{small}		&  10pt    &   1000   &  cmr10  & 545 & 600 &  545 \\
\Punkt{normalsize}	&  10.95pt &   1095   &         & 597 & 600 &  597 \\
\Punkt{large}		&  12pt    &   1200   &  cmr12  &  55 & 600 &  655 \\
\Punkt{Large}		&  14.4pt  &   1440   &         & 185 & 600 &  785 \\
\Punkt{LARGE}		&  17.28pt &   1728   &  cmr17  & 343 & 600 &  943 \\
\Punkt{huge}		&  20.74pt &   2074   &         & 531 & 600 & 1131 \\
\Punkt{Huge}		&  24.88pt &   2488   &         & 157 & 600 & 1357 \\
%% 12pt
\Punkt{tiny}            &   6pt    &    600   &  cmr6   & 327 & 600  
&  327 \\
\Punkt{scriptsize}      &   8pt    &    800   &  cmr8   & 436 & 600  
&  436 \\
\Punkt{footnotesize}    &  10pt    &   1000   &  cmr10  & 545 & 600  
&  545 \\
\Punkt{small}           &  10.95pt &   1095   &         & 597 & 600  
&  597 \\
\Punkt{normalsize}      &  12pt    &   1200   &  cmr12  &  55 & 600  
&  655 \\
\Punkt{large}           &  14.4pt  &   1440   &         & 185 & 600  
&  785 \\
\Punkt{Large}           &  17.28pt &   1728   &  cmr17  & 343 & 600  
&  943 \\
\Punkt{LARGE}           &  20.74pt &   2074   &         & 531 & 600 &  
1131 \\
\Punkt{huge}            &  24.88pt &   2488   &         & 157 & 600 &  
1357 \\
\Punkt{Huge}            &  24.88pt &   2488   &         & 157 & 600 &  
1357 \\

--
Greetings

   Pete

Email is a wonderful thing for people whose role in life is to be on  
top of things. But not for me; my role is to be on the bottom of  
things. What I do takes long hours of studying and uninterruptible  
concentration.
				– Donald Knuth





More information about the XeTeX mailing list