Debian Codegraph @

Doc/source/ttLib/index.rst

raw
1 #################################################
2 ttLib: Read and write OpenType and TrueType fonts
3 #################################################
4
5 .. contents:: On this page:
6 :local:
7
8 .. rubric:: Overview:
9 :heading-level: 2
10
11 Most users of the :mod:`fontTools` library will be using it to generate or manipulate
12 OpenType and TrueType fonts. (FontTools initially only supported TrueType fonts,
13 gaining OpenType support in version 2.0, and so uses the ``tt`` prefix to refer to
14 both kinds of font. Because of this we will refer to both as "TrueType fonts"
15 unless we need to make a distinction.)
16
17 The main entry point for such operations is the :py:mod:`fontTools.ttLib.ttFont`
18 module, but other modules also provide useful functionality for handling OpenType
19 fonts:
20
21 .. toctree::
22 :maxdepth: 1
23
24 ttFont
25
26 :mod:`.ttLib` supports fonts with TrueType-flavored glyphs (i.e., with
27 a ``glyf`` table), with PostScript-flavored glyphs (i.e., ``CFF`` or
28 ``CFF2`` tables), and with all of the glyph formats used for color fonts
29 (``CBDT``, ``COLR``, ``sbix``, and ``SVG``). Static and variable fonts
30 are both supported.
31
32
33 Command-line utilities
34 ----------------------
35
36 :mod:`.ttLib` includes two modules that provide command-line operations:
37
38 .. toctree::
39 :maxdepth: 1
40
41 removeOverlaps
42 scaleUpem
43
44
45 Supporting modules
46 ------------------
47
48 It also contains helper modules that enable lower-level
49 functionality. In most cases, users will not need to access these
50 modules directly:
51
52 .. toctree::
53 :maxdepth: 1
54
55 ttCollection
56 ttGlyphSet
57 ttVisitor
58 macUtils
59 reorderGlyphs
60 sfnt
61 standardGlyphOrder
62 tables
63 woff2