Skip to main content

Crate fontoxide_misc

Crate fontoxide_misc 

Source
Expand description

Port of fontTools.misc: low-level helpers shared by the other crates, and of the small top-level modules fontTools.agl, fontTools.afmLib and fontTools.tfmLib.

fontoxidefontTools
afm_libfontTools.afmLib
aglfontTools.agl
argparsePython’s argparse, as the command lines use it
array_toolsfontTools.misc.arrayTools
bezier_toolsfontTools.misc.bezierTools
classify_toolsfontTools.misc.classifyTools
cli_toolsfontTools.misc.cliTools
eexecfontTools.misc.eexec
encoding_toolsfontTools.misc.encodingTools
etreefontTools.misc.etree (lxml serialization)
filenamesfontTools.misc.filenames
fixed_toolsfontTools.misc.fixedTools
ift_sparse_bit_setfontTools.misc.iftSparseBitSet
int_toolsfontTools.misc.intTools
mac_resfontTools.misc.macRes
plistlibfontTools.misc.plistlib
ps_libfontTools.misc.psLib
ps_operatorsfontTools.misc.psOperators
round_toolsfontTools.misc.roundTools
text_toolsfontTools.misc.textTools
tfm_libfontTools.tfmLib
time_toolsfontTools.misc.timeTools
transformfontTools.misc.transform
tree_toolsfontTools.misc.treeTools
xml_writerfontTools.misc.xmlWriter
xml_readerfontTools.misc.xmlReader

py reproduces the Python formatting rules that fontTools output relies on, and complex Python’s complex arithmetic, which the curve math uses.

Re-exports§

pub use text_tools::Tag;

Modules§

afm_lib
Port of fontTools.afmLib: reading and writing AFM (Adobe Font Metrics) files.
agl
Port of fontTools.agl: the Adobe Glyph List.
argparse
The part of Python’s argparse (CPython 3.13) that the fontTools command lines use: parsing the arguments as ArgumentParser.parse_args does, with its error messages.
array_tools
Rectangles and point arrays (fontTools.misc.arrayTools).
bezier_tools
Bézier curve math (fontTools.misc.bezierTools).
classify_tools
Port of fontTools.misc.classifyTools: classifying things into similar sets.
cli_tools
Port of fontTools.misc.cliTools: utilities for command-line interfaces.
complex
Python’s complex, as fontTools’ curve math uses it.
eexec
Port of fontTools.misc.eexec: the Type 1 charstring and eexec encryption.
encoding_tools
Port of fontTools.misc.encodingTools: the text encoding of a platform / encoding / language ID triplet.
etree
A minimal element tree for building XML, serialized the way lxml does (fontTools.misc.etree uses lxml when it is installed, as in the reference environment), and parsed from a string (fromstring).
filenames
Port of fontTools.misc.filenames: converting a “user name” (something a user can choose arbitrarily inside a font editor, such as a glyph name) to a file name that is safe on a wide range of operating systems and file systems.
fixed_tools
Port of fontTools.misc.fixedTools: conversions between fixed-point numbers, floats and strings.
ift_sparse_bit_set
Sparse bit sets of Incremental Font Transfer (fontTools.misc.iftSparseBitSet).
int_tools
Port of fontTools.misc.intTools: bit counting.
mac_res
Port of fontTools.misc.macRes: a reader for Mac OS resource forks.
plistlib
Port of fontTools.misc.plistlib: property lists in XML.
ps_lib
Port of fontTools.misc.psLib: a tokenizer and a minimal PostScript interpreter, just about enough to parse Type 1 fonts (suckfont).
ps_operators
Port of fontTools.misc.psOperators: the objects of the minimal PostScript interpreter of ps_lib, and the key orders of Type 1 font dictionaries.
py
Python formatting semantics that fontTools’ output depends on.
round_tools
Port of fontTools.misc.roundTools: round-to-integer helpers.
text_tools
Port of fontTools.misc.textTools: tags, hex dumps, binary strings, and the literal parsing that fontTools does with safeEval (ast.literal_eval).
tfm_lib
Port of fontTools.tfmLib: reading TFM (TeX Font Metrics) files.
time_tools
Port of fontTools.misc.timeTools: OpenType timestamps (seconds since 1904-01-01 00:00:00 UTC).
transform
Affine transformations (fontTools.misc.transform).
tree_tools
Port of fontTools.misc.treeTools: generic tools for working with trees.
xml_reader
The XML content model of fontTools.misc.xmlReader.
xml_writer
Port of fontTools.misc.xmlWriter: the XML writer used for TTX.