1 | [package] |
2 | name = "owned_ttf_parser" |
3 | # Version should be inline with ttf-parser |
4 | version = "0.20.0" |
5 | authors = ["Alex Butler <alexheretic@gmail.com>" ] |
6 | edition = "2021" |
7 | description = "ttf-parser plus support for owned data" |
8 | repository = "https://github.com/alexheretic/owned-ttf-parser" |
9 | keywords = ["ttf" , "truetype" , "otf" , "opentype" ] |
10 | license = "Apache-2.0" |
11 | readme="README.md" |
12 | |
13 | [dependencies] |
14 | ttf-parser = { version = "0.20" , default-features = false } |
15 | |
16 | [features] |
17 | default = ["std" , "opentype-layout" , "apple-layout" , "variable-fonts" , "glyph-names" ] |
18 | # Activates usage of std. |
19 | std = ["ttf-parser/std" ] |
20 | # Enables variable fonts support. Increases binary size almost twice. |
21 | # Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables. |
22 | variable-fonts = ["ttf-parser/variable-fonts" ] |
23 | # Enables GDEF, GPOS and GSUB tables. |
24 | opentype-layout = ["ttf-parser/opentype-layout" ] |
25 | # Enables ankr, feat, format1 subtable in kern, kerx, morx and trak tables. |
26 | apple-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. |
31 | glyph-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. |
38 | gvar-alloc = ["std" , "ttf-parser/gvar-alloc" ] |
39 | |