Problem with typescripts - oldstyle numbers
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
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thomas A. Schmitz