Debian Codegraph @

doc/fonts/tex-gyre-math/INSTALL.txt

raw
1 INSTALLING MATH FONTS
2
3 To install a math font one should add it to the system fonts or install
4 it in the TeX Live directory structure (or both).
5
6
7 1. INSTALLING SYSTEM FONTS
8
9 a. WINDOWS
10 Window 7 (or newer): Right click on the font file, choose install
11 option. Windows 98 (or newer): Go to Start, then Control Panel.
12 Double click on Fonts, and drag-and-drop the font file into the Fonts
13 applet window. In MS Windows up to XP, in the Fonts applet, you can
14 also choose File from the menu bar, then Install New Font.
15 Please note, that if the font is not installed or not installed properly
16 (whatever that means), MS Word will substitute Cambria Math, even
17 if in the font selection control it says that DejaVu Math is being used.
18 To check, please compare visually the attached test-word-dejavu_math.docx
19 file with test-word-dejavu_math.pdf, with an eye especially on the sqrt signs.
20
21 b. APPLE (MAC OS X)
22 The font can be installed by double-clicking on the font file and
23 following the on screen prompts in the Font Book application, or by
24 manually copying (or dragging) the font file to any of the standard
25 Fonts folders in Mac OS: ~/Library/Fonts/ (user fonts), /Library/Fonts/
26 (local fonts) or /System/Library/Fonts/ (system fonts).
27
28 c. LINUX (most of current distributions)
29 Just copy font file to a directory read by font-config. In most cases
30 the directory /usr/local/share/fonts will be adequate (you can also
31 copy the font file to ~/.fonts or /usr/share/fonts ). If the font
32 doesn't appear in the applications font list you can run the fc-cache
33 program in order to force a cache rebuild.
34
35
36 2. INSTALLING FONTS IN TEX LIVE
37
38 To install fonts in the TeX Live system you have to copy it to the
39 appropriate directory: (TEXMF root)/texmf-local/fonts/opentype/public/
40 (you may have to create this directory). When you want install fonts
41 for only one user, you can use the ~/texmf/fonts/opentype directory
42 (this directory also may be nonexistent). After coping the font file,
43 you have to run mktexlsr command to refresh the kpathsea caches.
44
45 Most of the typesetting engines can use fonts installed either in OS or
46 in TeX Live. Microsoft Office (Word) uses, of course, only system fonts.
47 XeLaTeX can use both of them. LuaLaTeX and ConTeXt uses TeX Live fonts
48 by default, but if the OSFONTDIR environment variable is set, the
49 system fonts also can be found.
50
51 For typesetting math using an OpenType font with (Lua|Xe)LaTeX, an up
52 to date version of the unicode-math package (and related LaTeX3
53 packages) is crucial.
54
55
56 3. CHECKING THE INSTALLATION
57
58 In order to verify whether the font installation was successful, you
59 may wish to run the TeX examples or open the relevant MS Word example
60 and compare the results (in case of the Word file, just a previewer is
61 sufficient) with the respective PDF files.
62
63 Note that, unlike for TeX, an OTF font is to be referred rather by its
64 internalname(s) than by its file name.