mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Bump femtovg, rustybuzz, ttf-parser, and fontdb dependencies (#2191)
Mostly bugfix changes upstream with some minor API changes. FemtoVG is no more limited to 24 gradient stops for the paint.
This commit is contained in:
parent
83efa1f200
commit
860f318f7c
8 changed files with 37 additions and 25 deletions
|
@ -60,7 +60,7 @@ tiny-skia = { version = "0.8.2", optional = true }
|
|||
resvg = { version = "0.28.0", optional = true }
|
||||
usvg = { version = "0.28.0", optional = true }
|
||||
# font embedding
|
||||
fontdb = { version = "0.10", features = ["fontconfig"], optional = true }
|
||||
fontdb = { version = "0.12", features = ["fontconfig"], optional = true }
|
||||
fontdue = { version = "0.7.1", optional = true }
|
||||
|
||||
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32")))'.dependencies]
|
||||
|
|
|
@ -191,7 +191,14 @@ pub fn embed_glyphs<'a>(
|
|||
)
|
||||
.expect("internal error: fontdb returned a font that ttf-parser/fontdue could not parse");
|
||||
embed_font(
|
||||
fontdb.face(face_id).unwrap().family.clone(),
|
||||
fontdb
|
||||
.face(face_id)
|
||||
.unwrap()
|
||||
.families
|
||||
.first()
|
||||
.expect("TrueType font without english family name encountered")
|
||||
.0
|
||||
.clone(),
|
||||
font,
|
||||
&pixel_sizes,
|
||||
characters_seen.iter().cloned(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue