mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
Remove the freetype dependency on Windows and macOS
It's not needed and this would fix #315
This commit is contained in:
parent
cc8249212d
commit
91e2154a66
1 changed files with 5 additions and 3 deletions
|
@ -50,13 +50,15 @@ ttf-parser = "0.12.0"
|
|||
winit = { version = "0.25", default-features = false }
|
||||
glutin = { version = "0.27", default-features = false }
|
||||
glow = { version = "0.10.0", default-features = false }
|
||||
font-kit = { version = "0.10", features = ["loader-freetype"] }
|
||||
font-kit = { version = "0.10", features = [] }
|
||||
fontdb = { version = "0.5.1", features = ["fs"] }
|
||||
|
||||
# Require font-config from the system. Issue #88 indicates that the copy provided by servo-fontconfig may be incompatible
|
||||
# with distros at times.
|
||||
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32")))'.dependencies]
|
||||
# Require font-config from the system on Linux. Issue #88 indicates that the copy provided by servo-fontconfig may be incompatible
|
||||
# with distros at times.
|
||||
servo-fontconfig = { version = "0.5", features = [ "force_system_lib" ] }
|
||||
# On Windows and macOS we don't need freetype (font-kit has coretext/directwrite backends)
|
||||
font-kit = { version = "0.10", features = ["loader-freetype"] }
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
cocoa = { version = "0.24.0" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue