1 | [package] |
2 | name = "ttf-parser" |
3 | version = "0.17.1" |
4 | authors = ["Yevhenii Reizner <razrfalcon@gmail.com>" ] |
5 | keywords = ["ttf" , "truetype" , "opentype" ] |
6 | categories = ["parser-implementations" ] |
7 | license = "MIT OR Apache-2.0" |
8 | description = "A high-level, safe, zero-allocation TrueType font parser." |
9 | repository = "https://github.com/RazrFalcon/ttf-parser" |
10 | documentation = "https://docs.rs/ttf-parser/" |
11 | readme = "README.md" |
12 | edition = "2018" |
13 | exclude = ["benches/**" ] |
14 | |
15 | [features] |
16 | default = ["std" , "opentype-layout" , "apple-layout" , "variable-fonts" , "glyph-names" ] |
17 | std = [] |
18 | # Enables variable fonts support. Increases binary size almost twice. |
19 | # Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables. |
20 | variable-fonts = [] |
21 | # Enables GDEF, GPOS, GSUB and MATH tables. |
22 | opentype-layout = [] |
23 | # Enables ankr, feat, format1 subtable in kern, kerx, morx and trak tables. |
24 | apple-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. |
29 | glyph-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. |
36 | gvar-alloc = ["std" ] |
37 | |
38 | [dev-dependencies] |
39 | base64 = "0.13" |
40 | pico-args = "0.5" |
41 | xmlwriter = "0.1" |
42 | |