ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font sizes (again)
@ 2010-09-29 12:30 Florian Wobbe
  2010-09-30 13:27 ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Wobbe @ 2010-09-29 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

please regard this minimal example:

\setupbodyfont[10pt]
\starttext
\title{Title}
\section{Section}
{\switchtobodyfont[big] big}
{\switchtobodyfont[small] small}
{\tfxx tfxx}
{\tfx tfx}
{\tfa tfa}
{\tfb tfb}
{\tfc tfc}
{\tfd tfd}
\stoptext

Latin Modern Regular is available in different optical sizes - lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these sizes (configured in typescripts) I wonder why they are not correctly assigned. This table indicates what happens instead:

\tfxx 6pt    -> lmroman6 (as expected)
\tfx  8pt    -> lmroman8 (as expected)
\tftf 10pt   -> lmroman10 (as expected)
\tfa  12.0pt -> lmroman10 (instead of lmroman12)
\tfb  14.4pt -> lmroman10 (instead of lmroman12)
\tfc  17.3pt -> lmroman10 (instead of lmroman17)
\tfd  20.7pt -> lmroman10 (instead of lmroman17)

\switchtobodyfont[small]  8pt  -> lmroman8 (as expected)
\switchtobodyfont[big]    12pt -> lmroman12 (as expected)

\title   17.3pt -> lmroman10 (instead of lmroman17)
\section 12pt   -> lmroman10 (instead of lmroman12)

The commands \title and \section and the font size switches \tfa, b, c, and d scale the font to the correct size, however, the wrong optical size is assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. Tested in MKIV and MKII (current beta).

Is this a bug or a feature?

Cheers
Florian

___________________________________________________________________________________
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: font sizes (again)
  2010-09-29 12:30 font sizes (again) Florian Wobbe
@ 2010-09-30 13:27 ` Mojca Miklavec
  2010-10-01  9:55   ` Florian Wobbe
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2010-09-30 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Sep 29, 2010 at 14:30, Florian Wobbe wrote:
> Hi,
>
> please regard this minimal example:
>
> \setupbodyfont[10pt]
> \starttext
> \title{Title}
> \section{Section}
> {\switchtobodyfont[big] big}
> {\switchtobodyfont[small] small}
> {\tfxx tfxx}
> {\tfx tfx}
> {\tfa tfa}
> {\tfb tfb}
> {\tfc tfc}
> {\tfd tfd}
> \stoptext
>
> Latin Modern Regular is available in different optical sizes - lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these sizes (configured in typescripts) I wonder why they are not correctly assigned. This table indicates what happens instead:
>
> \tfxx 6pt    -> lmroman6 (as expected)
> \tfx  8pt    -> lmroman8 (as expected)
> \tftf 10pt   -> lmroman10 (as expected)
> \tfa  12.0pt -> lmroman10 (instead of lmroman12)
> \tfb  14.4pt -> lmroman10 (instead of lmroman12)
> \tfc  17.3pt -> lmroman10 (instead of lmroman17)
> \tfd  20.7pt -> lmroman10 (instead of lmroman17)
>
> \switchtobodyfont[small]  8pt  -> lmroman8 (as expected)
> \switchtobodyfont[big]    12pt -> lmroman12 (as expected)
>
> \title   17.3pt -> lmroman10 (instead of lmroman17)
> \section 12pt   -> lmroman10 (instead of lmroman12)
>
> The commands \title and \section and the font size switches \tfa, b, c, and d scale the font to the correct size, however, the wrong optical size is assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. Tested in MKIV and MKII (current beta).
>
> Is this a bug or a feature?

Most likely the first, however I never really understood how this
magic is configured in ConTeXt.

The relevant files are
    tex/context/base/type-siz.mkiv (as well as mkii)
I guess that the contents more or less agree with your observations
(there is no 17pt font defined for big, however there are small fonts
defined for x and xx), but I would have no idea how to fix anything.

Mojca
___________________________________________________________________________________
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: font sizes (again)
  2010-09-30 13:27 ` Mojca Miklavec
@ 2010-10-01  9:55   ` Florian Wobbe
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Wobbe @ 2010-10-01  9:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sep 30, 2010, at 15:27 , Mojca Miklavec wrote:

> On Wed, Sep 29, 2010 at 14:30, Florian Wobbe wrote:
>> Hi,
>> 
>> please regard this minimal example:
>> 
>> \setupbodyfont[10pt]
>> \starttext
>> \title{Title}
>> \section{Section}
>> {\switchtobodyfont[big] big}
>> {\switchtobodyfont[small] small}
>> {\tfxx tfxx}
>> {\tfx tfx}
>> {\tfa tfa}
>> {\tfb tfb}
>> {\tfc tfc}
>> {\tfd tfd}
>> \stoptext
>> 
>> Latin Modern Regular is available in different optical sizes - lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these sizes (configured in typescripts) I wonder why they are not correctly assigned. This table indicates what happens instead:
>> 
>> \tfxx 6pt    -> lmroman6 (as expected)
>> \tfx  8pt    -> lmroman8 (as expected)
>> \tftf 10pt   -> lmroman10 (as expected)
>> \tfa  12.0pt -> lmroman10 (instead of lmroman12)
>> \tfb  14.4pt -> lmroman10 (instead of lmroman12)
>> \tfc  17.3pt -> lmroman10 (instead of lmroman17)
>> \tfd  20.7pt -> lmroman10 (instead of lmroman17)
>> 
>> \switchtobodyfont[small]  8pt  -> lmroman8 (as expected)
>> \switchtobodyfont[big]    12pt -> lmroman12 (as expected)
>> 
>> \title   17.3pt -> lmroman10 (instead of lmroman17)
>> \section 12pt   -> lmroman10 (instead of lmroman12)
>> 
>> The commands \title and \section and the font size switches \tfa, b, c, and d scale the font to the correct size, however, the wrong optical size is assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. Tested in MKIV and MKII (current beta).
>> 
>> Is this a bug or a feature?
> 
> Most likely the first, however I never really understood how this
> magic is configured in ConTeXt.
> 
> The relevant files are
>    tex/context/base/type-siz.mkiv (as well as mkii)
> I guess that the contents more or less agree with your observations
> (there is no 17pt font defined for big, however there are small fonts
> defined for x and xx), but I would have no idea how to fix anything.
> 
> Mojca

Thanks, you are right, the biggest defined lm font is lmroman12. But that's beside the point. The typescripts are configured correctly. BTW, you get the same problem with Wolfgang's third/typescripts/type-optical.tex, which defines four optical sizes of the Adobe Pro fonts. Like Mojca, I don't know about the context magic innards and how to fix this either. Is there a way for interactive line tracing in luatex, similar to e.g. bash -x?

Florian

___________________________________________________________________________________
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:[~2010-10-01  9:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-29 12:30 font sizes (again) Florian Wobbe
2010-09-30 13:27 ` Mojca Miklavec
2010-10-01  9:55   ` Florian Wobbe

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