ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fonts with XeTeX
@ 2008-11-17 20:39 Bart C. Wise
  2008-11-17 21:22 ` Thomas A. Schmitz
  2008-11-17 21:25 ` Arthur Reutenauer
  0 siblings, 2 replies; 4+ messages in thread
From: Bart C. Wise @ 2008-11-17 20:39 UTC (permalink / raw)
  To: Context Mailing List

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-11-17 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-17 20:39 Fonts with XeTeX Bart C. Wise
2008-11-17 21:22 ` Thomas A. Schmitz
2008-11-17 21:25 ` Arthur Reutenauer
2008-11-17 22:15   ` Bart C. Wise

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