Difference between revisions of "Psnfss - Old Content"

From Wiki
Jump to navigation Jump to search
(mention utwgothic support)
(→‎How do I access these fonts from ConTeXt?: update text about [adobekb])
Line 27: Line 27:
 
== How do I access these fonts from ConTeXt? ==
 
== How do I access these fonts from ConTeXt? ==
  
If you don't have installed the font metrics with ConTeXt's
+
You can use the various psnfss font families by using commands like
<tt>texfont</tt>, you will have to change an internal mapping of
 
filenames with the commands
 
  
 
<texcode>
 
<texcode>
\usetypescript [adobekb][8r,ec]
+
\usetypescript[times][ec]
 +
\setupbodyfont[times,12pt]
 
</texcode>
 
</texcode>
  
After that you can setup your font with
+
Note that in the case of &ldquo;helvetica&rdquo; these lines should be replaced with:
  
 
<texcode>
 
<texcode>
\setupbodyfont[pos]
+
\usetypescript[helvetica][ec]
 +
\setupbodyfont[helvetica,ss,12pt]
 
</texcode>
 
</texcode>
  
and similar commands, like
+
or
 
 
<texcode>
 
\usetypescript[times][ec]
 
\setupbodyfont[times,12pt]
 
</texcode>
 
 
 
Note that in the case of &ldquo;helvetica&rdquo; these lines should be replaced with:
 
  
 
<texcode>
 
<texcode>
 
\usetypescript[helvetica][ec]
 
\usetypescript[helvetica][ec]
\setupbodyfont[helvetica,ss,12pt]
+
\setupbodyfont[helvetica,12pt]
 +
\starttext
 +
\ss
 
</texcode>
 
</texcode>
  
Line 60: Line 55:
  
 
<texcode>
 
<texcode>
\usetypescript [adobekb] [8r,ec]
+
%\usetypescript [adobekb][8r,ec] % uncomment for old ConTeXt
 
\usetypescript[times][ec]
 
\usetypescript[times][ec]
 
\setupbodyfont[times,12pt]
 
\setupbodyfont[times,12pt]
Line 79: Line 74:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
 +
 +
== Notes ==
 +
 +
'''Pdftex warning messages'''
  
 
You are likely to get some warnings from pdfetex like
 
You are likely to get some warnings from pdfetex like
Line 85: Line 84:
  
 
but these are harmless and can be ignored.
 
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.
 +
 +
=== Switching to these fonts ===
 +
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]
 
[[Category:From LaTeX]]
 
[[Category:From LaTeX]]

Revision as of 09:54, 31 January 2006

What is PSNFSS?

PSNFSS is an abbreviation of ‘post script new font selecting system,’ a terminology from LaTeX. It is an additional package that is usually 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. 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).

PSNFSS contains the following fonts:

font familystylesKB nameConTeXt typescript
AvantGarde4: Book, Demi + Obliquepagurwgothic, using the urwgothic typescript
Bookman4: Light, Demi + Italicpbkbookman
Courier4: (Normal), Bold + Obliquepcrcourier (tt)
Helvetica4: (Normal), Bold + Obliquephvhelvetica (ss)
Helvetica-Narrow4: (Normal), Bold + Obliquephv*n?
New Century Schoolbook4: Roman, Bold + Italicpncschoolbook
Palatino4: Roman, Bold + Italicpplpalatino
Symbol1: (Normal)psy?
Times4: Roman, Bold + Italicptmtimes
Zapf Chancery1: MediumItalicpzcchancery (cg!)
Zapf Dingbats1: (Normal)pzd(access through symbols)

How do I access these fonts from ConTeXt?

You can use the various psnfss font families by using commands like

\usetypescript[times][ec]
\setupbodyfont[times,12pt]

Note that in the case of “helvetica” these lines should be replaced with:

\usetypescript[helvetica][ec]
\setupbodyfont[helvetica,ss,12pt]

or

\usetypescript[helvetica][ec]
\setupbodyfont[helvetica,12pt]
\starttext
\ss

since helvetica is sans serif.

Here is an example:

%\usetypescript [adobekb][8r,ec] % uncomment for old ConTeXt
\usetypescript[times][ec]
\setupbodyfont[times,12pt]

\starttext

\input knuth
\blank
And this is some maths with PostScript fonts. 
\startformula
{a \over b} = {c \over d} \iff ad - bc = 0, 
\qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi, 
\qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
\qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
\stopformula
Some ligatures: ffi, ffl. 

\stoptext

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 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:

\usetypescript [adobekb][8r,ec]

In new ConTeXt releases, this has become the default behaviour.

Switching to these fonts