1[package]
2name = "owned_ttf_parser"
3# Version should be inline with ttf-parser
4version = "0.20.0"
5authors = ["Alex Butler <alexheretic@gmail.com>"]
6edition = "2021"
7description = "ttf-parser plus support for owned data"
8repository = "https://github.com/alexheretic/owned-ttf-parser"
9keywords = ["ttf", "truetype", "otf", "opentype"]
10license = "Apache-2.0"
11readme="README.md"
12
13[dependencies]
14ttf-parser = { version = "0.20", default-features = false }
15
16[features]
17default = ["std", "opentype-layout", "apple-layout", "variable-fonts", "glyph-names"]
18# Activates usage of std.
19std = ["ttf-parser/std"]
20# Enables variable fonts support. Increases binary size almost twice.
21# Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables.
22variable-fonts = ["ttf-parser/variable-fonts"]
23# Enables GDEF, GPOS and GSUB tables.
24opentype-layout = ["ttf-parser/opentype-layout"]
25# Enables ankr, feat, format1 subtable in kern, kerx, morx and trak tables.
26apple-layout = ["ttf-parser/apple-layout"]
27# Enables glyph name query via `Face::glyph_name`.
28# TrueType fonts do not store default glyph names, to reduce file size,
29# which means we have to store them in ttf-parser. And there are almost 500 of them.
30# By disabling this feature a user can reduce binary size a bit.
31glyph-names = ["ttf-parser/glyph-names"]
32# Enables heap allocations during gvar table parsing used by Apple's variable fonts.
33# Due to the way gvar table is structured, we cannot avoid allocations.
34# By default, only up to 32 variable tuples will be allocated on the stack,
35# while the spec allows up to 4095. Most variable fonts use 10-20 tuples,
36# so our limit is suitable for most of the cases. But if you need full support, you have to
37# enable this feature.
38gvar-alloc = ["std", "ttf-parser/gvar-alloc"]
39