servo/components/shared/fonts/Cargo.toml
Martin Robinson 4f68508624
script: Move FontContext from Window to GlobalScope (#38918)
This change makes it so that every `GlobalScope` can contain an optional
`FontContext`. This will be necessary for every `GlobalScope` that
accesses canvas. Currently, `FontContext` is created and accessed via
the canvas worker thread, but this means that web fonts are not
available to canvas. This change will eventually make it possible for
canvas to share web fonts with the `Document` that owns them.

Testing: This should not change behavior and is thus covered by existing
tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-08-26 15:56:50 +00:00

31 lines
814 B
TOML

[package]
name = "fonts_traits"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
[lib]
name = "fonts_traits"
path = "lib.rs"
[dependencies]
atomic_refcell = { workspace = true }
ipc-channel = { workspace = true }
log = { workspace = true }
malloc_size_of = { workspace = true }
malloc_size_of_derive = { workspace = true }
memmap2 = { workspace = true }
parking_lot = { workspace = true }
profile_traits = { workspace = true }
range = { path = "../../range" }
read-fonts = { workspace = true }
serde = { workspace = true }
servo_url = { path = "../../url" }
stylo = { workspace = true }
webrender_api = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
dwrote = { workspace = true }