Difference between revisions of "Psnfss - Old Content"
(add to new table) |
m (added some <texcode> markers and changed " to quotes) |
||
Line 31: | Line 31: | ||
filenames with the commands | filenames with the commands | ||
− | + | <texcode> | |
+ | \usetypescript [adobekb][\defaultencoding] | ||
+ | </texcode> | ||
− | or whatever encoding you want to use. After that you can setup your | + | or whatever encoding you want to use. After that you can setup your font with |
− | font with | ||
− | + | <texcode> | |
+ | \setupbodyfont[pos] | ||
+ | </texcode> | ||
and similar commands. | and similar commands. | ||
Line 42: | Line 45: | ||
Added on July 5th, 2005 (by Otared K.): | Added on July 5th, 2005 (by Otared K.): | ||
− | After some of us had difficulties using Postscript fonts, it seems 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 the appropriate way of using Postscript fonts (in this instance we say | + | After some of us had difficulties using Postscript fonts, it seems 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 the appropriate way of using Postscript fonts (in this instance we say “times,” but you can say “palatino”): |
<texcode> | <texcode> | ||
Line 51: | Line 54: | ||
</texcode> | </texcode> | ||
− | Note that in the case of | + | Note that in the case of “helvetica” the last two lines should be replaced with: |
<texcode> | <texcode> | ||
Line 58: | Line 61: | ||
</texcode> | </texcode> | ||
− | since | + | since helvetica is sans serif. |
Here is an example: | Here is an example: | ||
Line 87: | Line 90: | ||
E.g. load the typescript ''palatino'' like this | E.g. load the typescript ''palatino'' like this | ||
− | + | <texcode> | |
+ | \usetypescript[palatino][\defaultencoding] | ||
+ | </texcode> | ||
and switch to palatino with <cmd>setupbodyfont</cmd> | and switch to palatino with <cmd>setupbodyfont</cmd> | ||
− | + | <texcode> | |
+ | \setupbodyfont[palatino,12pt] | ||
+ | </texcode> |
Revision as of 18:52, 17 July 2005
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 family | styles | KB name | ConTeXt typescript |
---|---|---|---|
AvantGarde | 4: Book, Demi + Oblique | pag | None - not a very suitable text font |
Bookman | 4: Light, Demi + Italic | pbk | bookman |
Courier | 4: (Normal), Bold + Oblique | pcr | courier (tt) |
Helvetica | 4: (Normal), Bold + Oblique | phv | helvetica (ss) |
Helvetica-Narrow | 4: (Normal), Bold + Oblique | phv*n | ? |
New Century Schoolbook | 4: Roman, Bold + Italic | pnc | schoolbook |
Palatino | 4: Roman, Bold + Italic | ppl | palatino |
Symbol | 1: (Normal) | psy | ? |
Times | 4: Roman, Bold + Italic | ptm | times |
Zapf Chancery | 1: MediumItalic | pzc | chancery (cg!) |
Zapf Dingbats | 1: (Normal) | pzd | (access through symbols) |
How do I access these fonts from ConTeXt?
If you don't have installed the font metrics with ConTeXt's texfont, you will have to change an internal mapping of filenames with the commands
\usetypescript [adobekb][\defaultencoding]
or whatever encoding you want to use. After that you can setup your font with
\setupbodyfont[pos]
and similar commands.
Added on July 5th, 2005 (by Otared K.):
After some of us had difficulties using Postscript fonts, it seems 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 the appropriate way of using Postscript fonts (in this instance we say “times,” but you can say “palatino”):
\usetypescript [adobekb] [ec] \loadmapfile [context-base] \usetypescript[times][\defaultencoding] \setupbodyfont[times,12pt]
Note that in the case of “helvetica” the last two lines should be replaced with:
\usetypescript[helvetica][\defaultencoding] \setupbodyfont[helvetica,ss,12pt]
since helvetica is sans serif.
Here is an example:
\usetypescript [adobekb] [ec] %% or \defaultencoding \loadmapfile [context-base] \usetypescript[times][\defaultencoding] \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
How do I get ... ?
E.g. load the typescript palatino like this
\usetypescript[palatino][\defaultencoding]
and switch to palatino with \setupbodyfont
\setupbodyfont[palatino,12pt]