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:
Simon Hausmann 2023-02-08 09:56:53 +01:00 committed by GitHub
parent 83efa1f200
commit 860f318f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 37 additions and 25 deletions

View file

@ -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]

View file

@ -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(),