Hi!

I took my Adobe Garamond font package from LaTeX (with all the 
virtual fonts defined etc.) and adapted it to work with Context 
(by inspecting the LaTeX .fd files):

-----------------------------------------------------------------
\usetypescriptfile[type-buy]

\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 [Garamond] 
  \definetypeface [MyGaramond] [rm] [serif] [garamond] [default] [encoding=ec]
\stoptypescript
-----------------------------------------------------------------

Everything works fine! Two questions left: 

1. Bold-Caps, how do I access them? Is something like 
   "SerifBoldCaps" allowed?

2. How should I integrate Old-Style numbers, so that a switch with 
   \os works? Under Latex the solution from the packager was to 
   reimplement all fonts with a different filename. That is 
   instead of padr9e, padr9d would be used for Garamond-Roman with 
   Old-Style numbers. Obviously this (virtual) font maps-in old 
   style number-glyphs from the adobe extension font and keeps 
   everything else as is. 

   One solution would be to setup another typescript with old-style 
   fonts and switch to it everytime directly by \usetypescript and 
   \switchtobodyfont. But using "\os" would just be nicer.   

Thx, 
Peter

Reply via email to