ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Automatic selection of font shape depending on size
@ 2003-01-24  5:07 Victor Figurnov
  2003-01-24 20:09 ` Simon Pepping
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Figurnov @ 2003-01-24  5:07 UTC (permalink / raw)


Dear All!

Is there in ConTeXt an equivalent of LaTeX2e automatic
selection of font shape depending on font size?

For example, the following LaTeX statement (from type1ec.sty):

\DeclareFontShape{OT1}{cmr}{m}{n}{
        <-6>    cmr5
        <6-7>   cmr6
        <7-8>   cmr7
        <8-9>   cmr8
        <9-10>  cmr9
        <10-12> cmr10
        <12-17> cmr12
        <17->   cmr17
      }{}

means: for cmr family in OT1 encoding (series=medium,
shape=normal) LaTeX will use:

   for font sizes < 6pt use (scaled) external font cmr5 
   for font sizes >= 6pt and < 7pt,  use (scaled) external font cmr6
   for font sizes >= 7pt and < 8pt,  use (scaled) external font cmr7
   . . .
   for font sizes >= 12pt and < 17pt, use (scaled) external font cmr12
   for font sizes >= 17pt, use (scaled) external font cmr17).

For example, if 5,5 pt font size of cmr font family in OT1 encoding
(series=medium, shape=normal) is needed for typing text or math,
LaTeX will automatically use external font cmr5 (cmr5.tfm), scaled 
to 5,5pt design size. For 24 pt font size -- external font cmr17
scaled to 24pt design size, etc.

Is there in ConTeXt something like this?

---------------------
Victor Figurnov

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Automatic selection of font shape depending on size
  2003-01-24  5:07 Automatic selection of font shape depending on size Victor Figurnov
@ 2003-01-24 20:09 ` Simon Pepping
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Pepping @ 2003-01-24 20:09 UTC (permalink / raw)


On Fri, Jan 24, 2003 at 08:07:37AM +0300, Victor Figurnov wrote:
> Dear All!
> 
> Is there in ConTeXt an equivalent of LaTeX2e automatic
> selection of font shape depending on font size?
> 
> For example, the following LaTeX statement (from type1ec.sty):
> 
> \DeclareFontShape{OT1}{cmr}{m}{n}{
>         <-6>    cmr5
>         <6-7>   cmr6
>         <7-8>   cmr7
>         <8-9>   cmr8
>         <9-10>  cmr9
>         <10-12> cmr10
>         <12-17> cmr12
>         <17->   cmr17
>       }{}
> 
> means: for cmr family in OT1 encoding (series=medium,
> shape=normal) LaTeX will use:
> 
>    for font sizes < 6pt use (scaled) external font cmr5 
>    for font sizes >= 6pt and < 7pt,  use (scaled) external font cmr6
>    for font sizes >= 7pt and < 8pt,  use (scaled) external font cmr7
>    . . .
>    for font sizes >= 12pt and < 17pt, use (scaled) external font cmr12
>    for font sizes >= 17pt, use (scaled) external font cmr17).
> 
> For example, if 5,5 pt font size of cmr font family in OT1 encoding
> (series=medium, shape=normal) is needed for typing text or math,
> LaTeX will automatically use external font cmr5 (cmr5.tfm), scaled 
> to 5,5pt design size. For 24 pt font size -- external font cmr17
> scaled to 24pt design size, etc.
> 
> Is there in ConTeXt something like this?

In type-siz.tex I see this:

% cmr 

\starttypescript [serif] [computer-modern] [size] 

\definebodyfont [12pt] [rm] 
  [tf=cmr12,
   bf=cmbx12,
   it=cmti12,
   sl=cmsl12,
   bi=cmbxti10 at 12pt, 
   bs=cmbxsl10 at 12pt, 
   sc=cmcsc10 at 12pt]

I guess it does what you want.

And in type-enc.tex I see this:

\definefontsynonym [Times-Roman] [\typefaceencoding-utmr8a]
				   [encoding=\typefaceencoding]

Perhaps it does the same for scalable fonts.

Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-24 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-24  5:07 Automatic selection of font shape depending on size Victor Figurnov
2003-01-24 20:09 ` Simon Pepping

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).