Changes

Jump to navigation Jump to search
609 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 commands <texcode>\usetypescript see [[adobekbFonts][\defaultencoding]</texcode>)
or whatever encoding you want to You can use. After that you can setup your the various psnfss font withfamilies by using commands like
<texcode>
\usetypescript[times][ec]\setupbodyfont[postimes,12pt]
</texcode>
and similar commands.  Added on July 5th, 2005 (by Otared K.):After some of us had difficulties using Postscript fonts, it seems Note that as of ConTeXt version 2005.06.27 (and pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)) the following declarations are in the appropriate way case of using Postscript fonts (in this instance we say &ldquo;times,&rdquo; but you can say &ldquo;palatinohelvetica&rdquo;)these lines should be replaced with:
<texcode>
\usetypescript [adobekbhelvetica] [ec]\loadmapfile [context-base]\usetypescript[times][\defaultencoding]\setupbodyfont[timeshelvetica,ss,12pt]
</texcode>
Note that in the case of &ldquo;helvetica&rdquo; the last two lines should be replaced with:or
<texcode>
\usetypescript[helvetica][\defaultencodingec]\setupbodyfont[helvetica,ss,12pt]\starttext\ss
</texcode>
<texcode>
%\usetypescript [adobekb] [8r,ec] %% or \defaultencoding\loadmapfile [context-base]uncomment for old ConTeXt\usetypescript[times][\defaultencodingec]
\setupbodyfont[times,12pt]
</texcode>
== How do I get 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
E.g. load the typescript ''palatino'' like this
<texcode>
\usetypescript[palatinomodern] \usetypescript[times][ec]  \definetypeface[MyFace][rm][serif][times][default][encoding=ec] \definetypeface[MyFace][mm][math][modern][default][encoding=ec]  \defaultencodingsetupbodyfont[MyFace,12pt]
</texcode>
  == Notes == '''Pdftex warning messages''' You are likely to get some warnings from pdfetex like  Warning: pdfetex (file ec-urw-times.map): cannot open font map file but these are harmless and switch 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 palatino change an internal mapping of font filenames with <cmd>setupbodyfont</cmd>this command: 
<texcode>
\setupbodyfontusetypescript [palatinoadobekb][8r,12ptec]
</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