update upload data
[PyX.git] / examples / text / font.txt
blobbb2c9efb601f300698e3fd39c62426198a2ff817
1 Customize fonts
3 In LaTeX, there are nice packages allowing to switch fonts. Hence, for a simple
4 example we change the mode of the default texrunner instance to LaTeX and use
5 the `preamble` method to load the `palatino` package. ...
7 !! In general, it is also favourable to employ LaTeX when using your own Type1
8 fonts. Still you can also use different fonts in plain TeX if you are familiar
9 with the topic. However, LaTeX's NFSS (new font selection scheme) is preferable
10 for the ordinary user and has great advantages in daily use. All you need to do
11 is to integrate the fonts into your LaTeX system. PyX and LaTeX both require
12 a font map file containing the specification and the names of the font files.
13 Probably you will need to create your own LaTeX font adaptation, where the
14 `fontinst` utility is of great help. Try your favorite search engine on that
15 topic to learn more about it and find some step by step guides. As soon as
16 your LaTeX system is configured to use your fonts, they will also be available
17 to PyX.
19 !! The `times` package loads the Times New Roman and the Helvetica fonts, which
20 are part of any valid Acrobat Reader and Ghostscript installation. These fonts
21 are therefore not explicitly included in the output of PyX. This behaviour is
22 <> from LaTeX, where these standard 35 fonts usually are not contained in the
23 standard font-map file `psfonts.map`.
24 If you say
26     text.set(fontmaps="download35.map")
28 then PyX finds the corresponding fonts in the map-file and includes the fonts
29 in the output EPS and PDF files.