ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Erratic font scaling
@ 2002-09-19 22:38 Peter Sojan
  0 siblings, 0 replies; only message in thread
From: Peter Sojan @ 2002-09-19 22:38 UTC (permalink / raw)


Hi again!

I've added to my Garamond typescript a Sans-Serif variant which
is represented by Computer-Modern-Sans (there's no Garamond-Sans!?): 

------------------------------------------------------------------------
\starttypescript [serif] [garamond] [ec]
  \definefontsynonym [Garamond-Roman]       [padr9e]  [encoding=ec]
  \definefontsynonym [Garamond-Bold]        [padb9e]  [encoding=ec]
  \definefontsynonym [Garamond-Italic]      [padri9e] [encoding=ec]
  \definefontsynonym [Garamond-Bold-Italic] [padbi9e] [encoding=ec]
  \definefontsynonym [Garamond-Caps]        [padrc9e] [encoding=ec]
  \definefontsynonym [Garamond-Bold-Caps]   [padbc9e] [encoding=ec]
\stoptypescript

\starttypescript [serif] [garamond] [name]
  %\usetypescript[serif][fallback]
  \definefontsynonym [Serif]           [Garamond-Roman]
  \definefontsynonym [SerifBold]       [Garamond-Bold]
  \definefontsynonym [SerifItalic]     [Garamond-Italic]
  \definefontsynonym [SerifBoldItalic] [Garamond-Bold-Italic]
  \definefontsynonym [SerifCaps]       [Garamond-Caps]
  \definefontsynonym [SerifBoldCaps]   [Garamond-Bold-Caps]
\stoptypescript

\starttypescript [serif] [garamond] [size]
  \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [rm] [default]
\stoptypescript

\starttypescript [Garamond] 
  \definetypeface [MyGaramond] [rm] [serif] [garamond] [garamond] [encoding=ec]
  \definetypeface [MyGaramond] [ss] [sans]  [computer-modern] [computer-modern] [encoding=default]
\stoptypescript
------------------------------------------------------------------------

Everything works fine with following bodyfont-sizes: 

  \setupbodyfont[MyGaramond,12pt]
  \setupbodyfont[MyGaramond,11pt]
  \setupbodyfont[MyGaramond,10pt]

Both, Serif (Garamond) and Sans (Computer-Modern), scale down 
proportionally, but If I do 

  \setupbodyfont[MyGaramond,9pt]

... Serif (Garamond) suddenly jumps back to 12pt while Sans (Computer-
Modern) correctly scales down to 9pt.

As far as I understand there are explicit "\definebodyfont"'s in 
type-siz.tex for Computer-Modern. This is, I think, because CM comes
in different design sizes. Since Garamond only has one design-size  
shouldn't the above line 

  \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [rm] [default]

suffice? Perhaps something with \definebodyfontenvironment ...!? 

Thx, 
Peter


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-19 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 22:38 Erratic font scaling Peter Sojan

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