Changes

Jump to navigation Jump to search
1,250 bytes added ,  16:28, 10 September 2012
m
moved psnfss to Psnfss: move to Uppercase
installed on your LaTeX system. One of its purposes is to access the
standard postscript fonts that printers have built in, also known as
the thirty five base fonts. (Note, however, that the Adobe Type 1 (postscript) fonts have been replacedby the [http://www.adobe.com/type/opentype/T1_to_OTF_FAQ.htm OpenType] standard,available in ConTeXt through the [[TeX_Gyre]] fonts.) Part of PSNFSS is a set of font metrics
(the tfm-files) that allows TeX to use the fonts for typesetting (TeX
only knows about metrics, not outlines).
<table style="width:100%; border:1px solid #DDDDDD;">
<tr style="background-color:#CCCCCC;"><th>font family</th><th>styles</th><th>KB name</th><th>ConTeXt typescript</th></tr>
<tr><td>AvantGarde</td><td>4: Book, Demi + Oblique</td><td>pag</td><td>None - not a very suitable text fonturwgothic, using the [[modules:urwgothic| urwgothic typescript]]</td></tr>
<tr style="background-color:#EEEEEE;"><td>Bookman</td><td>4: Light, Demi + Italic</td><td>pbk</td><td>bookman</td></tr>
<tr><td>Courier</td><td>4: (Normal), Bold + Oblique</td><td>pcr</td><td>courier (''tt'')</td></tr>
== How do I access these fonts from ConTeXt? ==
If you don't have installed (MKII only; MKIV uses the font metrics with ConTeXt's<tt>texfont</tt>[[TeX_Gyre]] fonts, you will have to change an internal mapping offilenames with the commandssee [[Fonts]])
<texcode>\usetypescript [adobekb][8r,ec]</texcode> After that you You can setup your use the various psnfss font withfamilies by using commands like
<texcode>
\usetypescript[times][ec]\setupbodyfont[postimes,12pt]
</texcode>
and similar commands, likeNote that in the case of &ldquo;helvetica&rdquo; these lines should be replaced with:
<texcode>
\usetypescript[timeshelvetica][ec]\setupbodyfont[timeshelvetica,ss,12pt]
</texcode>
Note that in the case of &ldquo;helvetica&rdquo; these lines should be replaced with:or
<texcode>
\usetypescript[helvetica][ec]
\setupbodyfont[helvetica,ss,12pt]\starttext\ss
</texcode>
<texcode>
%\usetypescript [adobekb] [8r,ec]% uncomment for old ConTeXt
\usetypescript[times][ec]
\setupbodyfont[times,12pt]
\stoptext
</texcode>
 
== Examples of mixing typefaces ==
Suppose you want
* For normal text use the Times-Roman font
* For math's use a different font, i.e. Latin Modern
 
then use
 
<texcode>
\usetypescript[modern]
\usetypescript[times][ec]
 
\definetypeface[MyFace][rm][serif][times][default][encoding=ec]
\definetypeface[MyFace][mm][math][modern][default][encoding=ec]
 
\setupbodyfont[MyFace,12pt]
</texcode>
 
 
== Notes ==
 
'''Pdftex warning messages'''
You are likely to get some warnings from pdfetex like
but these are harmless and can be ignored.
 
'''Older ConTeXt releases (pre 2006.01.09)'''
 
If you use an older ConTeXt release (like one that came with your TeX installation)
you will have to change an internal mapping of font filenames with this command:
 
<texcode>
\usetypescript [adobekb][8r,ec]
</texcode>
 
In new ConTeXt releases, this has become the default behaviour.
 
'''Even older ConTeXt releases'''
 
If you are stuck on Debian 3.1 like me, or are running a ConTeXt release before August 2003,
you can download the adobekb.tex file from [http://levana.de/context/ levana.de].
Or maybe upgrading teTeX from [http://www.backports.org/ backports] will solve that?
[[Category:Fonts]]
[[Category:From LaTeX]]

Navigation menu