| 1 | [package] |
| 2 | name = "owned_ttf_parser" |
| 3 | # Version should be inline with ttf-parser |
| 4 | version = "0.25.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.25" , default-features = false } |
| 15 | |
| 16 | [features] |
| 17 | default = ["std" , "opentype-layout" , "apple-layout" , "variable-fonts" , "glyph-names" ] |
| 18 | # Activates usage of std. |
| 19 | # When disabled, the `no-std-float` feature must be enabled instead. |
| 20 | std = ["ttf-parser/std" ] |
| 21 | no-std-float = ["ttf-parser/no-std-float" ] |
| 22 | # Enables variable fonts support. Increases binary size almost twice. |
| 23 | # Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables. |
| 24 | variable-fonts = ["ttf-parser/variable-fonts" ] |
| 25 | # Enables GDEF, GPOS and GSUB tables. |
| 26 | opentype-layout = ["ttf-parser/opentype-layout" ] |
| 27 | # Enables ankr, feat, format1 subtable in kern, kerx, morx and trak tables. |
| 28 | apple-layout = ["ttf-parser/apple-layout" ] |
| 29 | # Enables glyph name query via `Face::glyph_name`. |
| 30 | # TrueType fonts do not store default glyph names, to reduce file size, |
| 31 | # which means we have to store them in ttf-parser. And there are almost 500 of them. |
| 32 | # By disabling this feature a user can reduce binary size a bit. |
| 33 | glyph-names = ["ttf-parser/glyph-names" ] |
| 34 | # Enables heap allocations during gvar table parsing used by Apple's variable fonts. |
| 35 | # Due to the way gvar table is structured, we cannot avoid allocations. |
| 36 | # By default, only up to 32 variable tuples will be allocated on the stack, |
| 37 | # while the spec allows up to 4095. Most variable fonts use 10-20 tuples, |
| 38 | # so our limit is suitable for most of the cases. But if you need full support, you have to |
| 39 | # enable this feature. |
| 40 | gvar-alloc = ["std" , "ttf-parser/gvar-alloc" ] |
| 41 | |