Automatic selection of font shape depending on size
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
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
participants (2)
-
Simon Pepping
-
Victor Figurnov