fonts: Use skrifa to get raw font table data on Linux (#38690)

Use skrifa instead of freetype for extracting raw table data. Allows us
to replace unsafe Freetype code with safe Skrifa code. Also allows us to
avoid copying the table data. Instead we return Arc'd data.

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2025-08-15 12:30:29 +01:00 committed by GitHub
parent a4fdbe8be3
commit 046dbd86a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 35 deletions

View file

@ -138,6 +138,7 @@ servo-media-dummy = { git = "https://github.com/servo/media" }
servo-media-gstreamer = { git = "https://github.com/servo/media" }
servo-tracing = { path = "components/servo_tracing" }
servo_arc = { git = "https://github.com/servo/stylo", branch = "2025-08-01" }
skrifa = "0.31.3"
smallbitvec = "2.6.0"
smallvec = { version = "1.15", features = ["serde", "union"] }
string_cache = "0.8"