ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Mismatched font size when switching fonts in the chapter title
@ 2013-04-17  7:00 Tim Li
  2013-04-17  8:11 ` Sietse Brouwer
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Li @ 2013-04-17  7:00 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]

Mismatched font size when switching fonts in the chapter title
   \setupbodyfont[12pt]
   \definefontsynonym[PalatinoRoman][name:palatinolinotyperoman][features=default]
   \definefont[AnotherFont][PalatinoRoman sa 1]
   \starttext
   \chapter{On \AnotherFont Fonts}
   General readers
   \stoptextIt seems that if switching to another font in the chapter title, the size of these two typefaces is mismatched. This will produce the mismatched font size("On" and "Font"), how to deal with this problem? Tim Li 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 862 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Mismatched font size when switching fonts in the chapter title
  2013-04-17  7:00 Mismatched font size when switching fonts in the chapter title Tim Li
@ 2013-04-17  8:11 ` Sietse Brouwer
  2013-04-17  9:47   ` Tim Li
  0 siblings, 1 reply; 3+ messages in thread
From: Sietse Brouwer @ 2013-04-17  8:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Tim,

[PalatinoRoman sa 1]
This means "PalatinoRoman scaled at 1 x bodyfontsize. The document's
body font size is 12 pt, but chapter headers usually are ... like,
about 2.4 * body font size? Hence the size mismatch.

[PalatinoRoman sa *]
This means "AnotherFont is PalatinoRoman scaled to 1 x the font size
at time of calling.

Compare these two MWE's (I've changed the font name to
texgyrepagellaregular so that the example will work for any ConTeXt
user.)

\setupbodyfont[12pt]
\definefontsynonym[PalatinoRoman][texgyrepagellaregular][features=default]
\definefont[AnotherFontSaOne][PalatinoRoman sa 1]
\definefont[AnotherFontSaStar][PalatinoRoman sa *]

\starttext
\chapter{Fonts and \AnotherFontSaOne Fonts}
Generalized \AnotherFontSaOne Generals. (Constant size)

\chapter{Fonts and \AnotherFontSaStar Fonts}
Generalized \AnotherFontSaStar Generals. (Adapt to current size)
\stoptext

I got this information from page 5 of the Fonts chapter of the
long-coming manual. (Not the same as the document detailing what you
can do with OTF and Lua, although I think that one, too, is called a
fonts manual.)
http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf

Cheers,
Sietse
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Mismatched font size when switching fonts in the chapter title
  2013-04-17  8:11 ` Sietse Brouwer
@ 2013-04-17  9:47   ` Tim Li
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Li @ 2013-04-17  9:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2174 bytes --]

Sietse,  Thanks for your detailed explanation. With your help, I have known the reason. Also, I am reading the new chapter on fonts.
 Best regards,Tim> From: sbbrouwer@gmail.com
> Date: Wed, 17 Apr 2013 10:11:19 +0200
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Mismatched font size when switching fonts in the chapter title
> 
> Hi Tim,
> 
> [PalatinoRoman sa 1]
> This means "PalatinoRoman scaled at 1 x bodyfontsize. The document's
> body font size is 12 pt, but chapter headers usually are ... like,
> about 2.4 * body font size? Hence the size mismatch.
> 
> [PalatinoRoman sa *]
> This means "AnotherFont is PalatinoRoman scaled to 1 x the font size
> at time of calling.
> 
> Compare these two MWE's (I've changed the font name to
> texgyrepagellaregular so that the example will work for any ConTeXt
> user.)
> 
> \setupbodyfont[12pt]
> \definefontsynonym[PalatinoRoman][texgyrepagellaregular][features=default]
> \definefont[AnotherFontSaOne][PalatinoRoman sa 1]
> \definefont[AnotherFontSaStar][PalatinoRoman sa *]
> 
> \starttext
> \chapter{Fonts and \AnotherFontSaOne Fonts}
> Generalized \AnotherFontSaOne Generals. (Constant size)
> 
> \chapter{Fonts and \AnotherFontSaStar Fonts}
> Generalized \AnotherFontSaStar Generals. (Adapt to current size)
> \stoptext
> 
> I got this information from page 5 of the Fonts chapter of the
> long-coming manual. (Not the same as the document detailing what you
> can do with OTF and Lua, although I think that one, too, is called a
> fonts manual.)
> http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
> 
> Cheers,
> Sietse
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 2743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2013-04-17  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17  7:00 Mismatched font size when switching fonts in the chapter title Tim Li
2013-04-17  8:11 ` Sietse Brouwer
2013-04-17  9:47   ` Tim Li

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