ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with typescripts - oldstyle numbers
@ 2006-03-16 20:06 Thomas A. Schmitz
  2006-03-16 20:59 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2006-03-16 20:06 UTC (permalink / raw)


I just realized the pattern in a somewhat unexpected behavior in a  
typescript. It defines several instances of Adobe Caslon (with or  
without certain ligatures, oldstyle, proportional numbers etc.). I  
want typewriter and math from Latin Modern. In the end, the typefaces  
are defined:


\starttypescript [Caslonpnum]
   \definetypeface [MyCaslonpnum] [rm] [serif] [caslonpnum] [default]  
[encoding=\typescripttwo]
   \definetypeface [MyCaslonpnum] [tt] [mono] [modern] [default]  
[encoding=\typescripttwo]
\stoptypescript

Here's the catch: as soon as I add a definition for a math font:

   \definetypeface [MyCaslonpnum] [mm] [math] [modern] [default] 
[encoding=\typescripttwo]

oldstyle figures will always be taken from the math font. If I delete  
this line from the typescript, I get the oldstyle figures from the  
font defined as [OldStyle]. Looks like a bug to me. Or am I  
misunderstanding something?

Thomas

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

* Re: Problem with typescripts - oldstyle numbers
  2006-03-16 20:06 Problem with typescripts - oldstyle numbers Thomas A. Schmitz
@ 2006-03-16 20:59 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-03-16 20:59 UTC (permalink / raw)


Thomas A. Schmitz wrote:
> I just realized the pattern in a somewhat unexpected behavior in a  
> typescript. It defines several instances of Adobe Caslon (with or  
> without certain ligatures, oldstyle, proportional numbers etc.). I  
> want typewriter and math from Latin Modern. In the end, the typefaces  
> are defined:
>
>
> \starttypescript [Caslonpnum]
>    \definetypeface [MyCaslonpnum] [rm] [serif] [caslonpnum] [default]  
> [encoding=\typescripttwo]
>    \definetypeface [MyCaslonpnum] [tt] [mono] [modern] [default]  
> [encoding=\typescripttwo]
> \stoptypescript
>
> Here's the catch: as soon as I add a definition for a math font:
>
>    \definetypeface [MyCaslonpnum] [mm] [math] [modern] [default] 
> [encoding=\typescripttwo]
>
> oldstyle figures will always be taken from the math font. If I delete  
> this line from the typescript, I get the oldstyle figures from the  
> font defined as [OldStyle]. Looks like a bug to me. Or am I  
> misunderstanding something?
>   
there are several definitions:

\def\os  {\mathortext{\fam\purefamily    {oldstyle}}{\symbolicfont    {OldStyle}}}

\definefontsynonym [OldStyle]     [Serif]

and in the cmr synonyms OldStyle comes from a math font 

when i need oldstyles, i just define an oldstyle typeface, eg with optima nova (type-ghz.tex): 

\starttypescript [sans] [optima-nova-os] [name]

  \definefontsynonym [Sans]            [OptimaNovaLT-RegularOsF]
  \definefontsynonym [SansItalic]      [OptimaNovaLT-ItalicOsF]
  \definefontsynonym [SansBold]        [OptimaNovaLT-BoldOsF]
  \definefontsynonym [SansBoldItalic]  [OptimaNovaLT-BoldItalicOsF]
  \definefontsynonym [SansSlanted]     [OptimaNovaLT-ItalicOsF]
  \definefontsynonym [SansBoldSlanted] [OptimaNovaLT-BoldItalicOsF]
  \definefontsynonym [SansCaps]        [OptimaNovaLT-RegularSC]

\stoptypescript

\definetypeface[optima][ss][sans][optima-nova][default][encoding=texnansi]
\definetypeface[osoptima][ss][sans][optima-nova-os][default][encoding=texnansi]

so i do a complete switch from \optima to \osoptima when needed 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

end of thread, other threads:[~2006-03-16 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-16 20:06 Problem with typescripts - oldstyle numbers Thomas A. Schmitz
2006-03-16 20:59 ` Hans Hagen

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