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