| 1 | [package] |
| 2 | name = "ab_glyph" |
| 3 | version = "0.2.29" |
| 4 | authors = ["Alex Butler <alexheretic@gmail.com>" ] |
| 5 | edition = "2021" |
| 6 | description = "API for loading, scaling, positioning and rasterizing OpenType font glyphs." |
| 7 | repository = "https://github.com/alexheretic/ab-glyph" |
| 8 | keywords = ["text" , "ttf" , "truetype" , "otf" , "opentype" ] |
| 9 | license = "Apache-2.0" |
| 10 | readme = "README.md" |
| 11 | |
| 12 | [dependencies] |
| 13 | owned_ttf_parser = { version = "0.25" , default-features = false } |
| 14 | ab_glyph_rasterizer = { version = "0.1.2" , path = "../rasterizer" , default-features = false } |
| 15 | # no_std float stuff |
| 16 | libm = { version = "0.2.1" , optional = true } |
| 17 | |
| 18 | [dev-dependencies] |
| 19 | # don't add any, instead use ./dev |
| 20 | |
| 21 | [features] |
| 22 | default = ["std" , "variable-fonts" ] |
| 23 | # Activates usage of std. |
| 24 | std = ["owned_ttf_parser/default" , "ab_glyph_rasterizer/default" ] |
| 25 | # Uses libm when not using std. This needs to be active in that case. |
| 26 | libm = ["dep:libm" , "ab_glyph_rasterizer/libm" , "owned_ttf_parser/no-std-float" ] |
| 27 | variable-fonts = ["owned_ttf_parser/variable-fonts" ] |
| 28 | |