1[package]
2name = "ttf-parser"
3version = "0.17.1"
4authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
5keywords = ["ttf", "truetype", "opentype"]
6categories = ["parser-implementations"]
7license = "MIT OR Apache-2.0"
8description = "A high-level, safe, zero-allocation TrueType font parser."
9repository = "https://github.com/RazrFalcon/ttf-parser"
10documentation = "https://docs.rs/ttf-parser/"
11readme = "README.md"
12edition = "2018"
13exclude = ["benches/**"]
14
15[features]
16default = ["std", "opentype-layout", "apple-layout", "variable-fonts", "glyph-names"]
17std = []
18# Enables variable fonts support. Increases binary size almost twice.
19# Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables.
20variable-fonts = []
21# Enables GDEF, GPOS, GSUB and MATH tables.
22opentype-layout = []
23# Enables ankr, feat, format1 subtable in kern, kerx, morx and trak tables.
24apple-layout = []
25# Enables glyph name query via `Face::glyph_name`.
26# TrueType fonts do not store default glyph names, to reduce file size,
27# which means we have to store them in ttf-parser. And there are almost 500 of them.
28# By disabling this feature a user can reduce binary size a bit.
29glyph-names = []
30# Enables heap allocations during gvar table parsing used by Apple's variable fonts.
31# Due to the way gvar table is structured, we cannot avoid allocations.
32# By default, only up to 32 variable tuples will be allocated on the stack,
33# while the spec allows up to 4095. Most variable fonts use 10-20 tuples,
34# so our limit is suitable for most of the cases. But if you need full support, you have to
35# enable this feature.
36gvar-alloc = ["std"]
37
38[dev-dependencies]
39base64 = "0.13"
40pico-args = "0.5"
41xmlwriter = "0.1"
42