Skip to content

Commit 3547cc1

Browse files
committed
Merge with master
2 parents 2ec3ce5 + 87ef3cc commit 3547cc1

File tree

21 files changed

+500
-880
lines changed

21 files changed

+500
-880
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ clru = { version = "0.6.0" }
146146
css-color-parser2 = { version = "1.0.1" }
147147
derive_more = { version = "2.0.0", default-features = false, features = ["deref", "deref_mut", "into", "from", "add", "add_assign", "mul", "not", "display"] }
148148
euclid = { version = "0.22.1", default-features = false }
149-
fontdb = { version = "0.23.0", default-features = false }
150149
fontdue = { version = "0.9.0" }
151150
glutin = { version = "0.32.0", default-features = false }
152151
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
@@ -172,6 +171,7 @@ glow = { version = "0.16" }
172171
tikv-jemallocator = { version = "0.6" }
173172
wgpu-26 = { package = "wgpu", version = "26", default-features = false }
174173
input = { version = "0.9.0", default-features = false }
174+
fontique = { version = "0.5.0" }
175175

176176
[profile.release]
177177
lto = true

internal/common/Cargo.toml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,11 @@ path = "lib.rs"
1818

1919
[features]
2020
default = []
21-
shared-fontdb = ["dep:fontdb", "dep:libloading", "derive_more", "cfg-if", "dep:ttf-parser"]
21+
shared-fontique = ["dep:fontique", "dep:ttf-parser"]
2222

2323
[dependencies]
24-
fontdb = { workspace = true, optional = true }
2524
ttf-parser = { workspace = true, optional = true }
26-
derive_more = { workspace = true, optional = true }
27-
cfg-if = { version = "1", optional = true }
28-
29-
[target.'cfg(not(any(target_family = "windows", target_vendor = "apple", target_arch = "wasm32", target_os = "android")))'.dependencies]
30-
libloading = { version = "0.8.0", optional = true }
31-
32-
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
33-
fontdb = { workspace = true, optional = true, features = ["std", "fs", "fontconfig"] }
34-
35-
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "nto")))'.dependencies]
36-
fontdb = { workspace = true, optional = true, features = ["memmap"] }
25+
fontique = { workspace = true, optional = true }
3726

3827
[package.metadata.docs.rs]
3928
rustdoc-args = ["--generate-link-to-definition"]

internal/common/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
#![doc = include_str!("README.md")]
55
#![doc(html_logo_url = "https://slint.dev/logo/slint-logo-square-light.svg")]
6-
#![cfg_attr(not(feature = "shared-fontdb"), no_std)]
6+
#![cfg_attr(not(feature = "shared-fontique"), no_std)]
77

88
pub mod builtin_structs;
99
pub mod enums;
1010
pub mod key_codes;
1111

12-
#[cfg(feature = "shared-fontdb")]
13-
pub mod sharedfontdb;
12+
#[cfg(feature = "shared-fontique")]
13+
pub mod sharedfontique;
1414

1515
/// Detect the native style depending on the platform
1616
pub fn get_native_style(has_qt: bool, target: &str) -> &'static str {

internal/common/sharedfontdb.rs

Lines changed: 0 additions & 262 deletions
This file was deleted.

0 commit comments

Comments
 (0)