ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Small-Caps and Old-Style numbers
@ 2002-09-19 11:21 Peter Sojan
  2002-09-19 12:08 ` Bill McClain
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Sojan @ 2002-09-19 11:21 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Small-Caps and Old-Style numbers
@ 2002-09-19 19:27 Bruce D'Arcus
  2002-09-19 19:51 ` Bill McClain
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce D'Arcus @ 2002-09-19 19:27 UTC (permalink / raw)
  Cc: context

Bill McClain wrote:

>On Thu, 19 Sep 2002 13:21:05 +0200
>Peter Sojan <ilikeunix@gmx.net> wrote:
>
>> 1. Bold-Caps, how do I access them? Is something like 
>>    "SerifBoldCaps" allowed?
>
>I don't think so (perhaps Hans will correct me?) I would define a new
>typescript such as "MyGaramondBold" where the [SerifCaps] synonym
>references the bold small caps font. You'll have to \switchtobodyfont to
>use that font.

Hmm...so no smallcap italics?  And if I have a font that also has light 
sc and medium sc, I need three separate typescripts just to access 
those fonts?

Bruce


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

end of thread, other threads:[~2002-09-19 22:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 11:21 Small-Caps and Old-Style numbers Peter Sojan
2002-09-19 12:08 ` Bill McClain
2002-09-19 22:16   ` Peter Sojan
2002-09-19 19:27 Bruce D'Arcus
2002-09-19 19:51 ` Bill McClain

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