I am having difficulties writing a typescript for the Caslon font that's on my 
system.

The following works:

\definetypeface[Caslon-Bold][rm][Xserif][CaslonOldFaceBT-Heavy]
\definetypeface[Caslon-Italic][rm][Xserif][CaslonOldFaceBT-Italic]
\definetypeface[Caslon-Regular][rm][Xserif][CaslonOldFaceBT-Roman]

\starttext
Testing
\switchtobodyfont[Caslon-Regular] Testing
\switchtobodyfont[Caslon-Bold] Testing
\switchtobodyfont[Caslon-Italic] Testing
\stoptext


However, I tried to write a simple typescript for the same font.  I came up 
with the following:

\starttypescript[serif][caslon][uc]
    \definetypeface[CaslonRegular][CaslonOldFaceBT-Roman][encoding=uc]
    \definetypeface[CaslonItalic][CaslonOldFaceBT-Italic][encoding=uc]
    \definetypeface[CaslonBold][CaslonOldFaceBT-Heavy][encoding=uc]
\stoptypescript

\starttypescript[serif][caslon][name]
    \definefontsynonym  [Serif]           [CaslonRegular]
    \definefontsynonym  [SerifItalic]     [CaslonItalic]
    \definefontsynonym  [SerifBold]       [CaslonBold]
\stoptypescript

\starttypescript[caslon][uc]
    \definetypeface[caslon][rm][serif][caslon][default][encoding=uc]
\stoptypescript

\usetypescript[caslon][uc]
\setupbodyfont[caslon, 12pt]

\starttext
Testing {\bf Testing} {\it Testing}
\stoptext

It fails to compile on the \setupbodyfont line.

I know I'm doing something wrong, but every variation I've tried ends up with 
a compile error, or the caslon font is never loaded and it reverts back to the 
default font.

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to