Store font as peniko::Font behind feature flag (#375)
* Allow exposing Peniko font from cosmic text * . * . * . * .
This commit is contained in:
parent
6598c7cae8
commit
695745ac4f
2 changed files with 27 additions and 1 deletions
|
|
@ -40,11 +40,16 @@ version = "0.3.13"
|
|||
default-features = false
|
||||
features = ["hardcoded-data"]
|
||||
|
||||
[dependencies.peniko]
|
||||
version = "0.3.1"
|
||||
optional = true
|
||||
|
||||
[features]
|
||||
default = ["std", "swash", "fontconfig"]
|
||||
fontconfig = ["fontdb/fontconfig", "std"]
|
||||
monospace_fallback = []
|
||||
no_std = ["rustybuzz/libm", "hashbrown", "dep:libm"]
|
||||
peniko = ["dep:peniko"]
|
||||
shape-run-cache = []
|
||||
std = [
|
||||
"fontdb/memmap",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue