servo/components/canvas
Martin Robinson 4907e89656
canvas: Remove as much usage of font-kit as possible (#32758)
Do font selection using Servo's font backend, which is shared with the
rest of layout. In addition, delay the creation of the `font-kit` font
until just before rendering with `raqote`. The idea is that when
`raqote` is no longer used, we can drop the `font-kit` dependency.

This change has the side-effect of fixing text rendering in canvas,
adding support for font fallback in canvas, and also correcting a bug in
font selection with size overrides.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-07-11 04:25:38 +00:00
..
webgl_mode Move RenderingContext to webrender_traits (#32386) 2024-05-28 12:48:55 +00:00
canvas_data.rs canvas: Remove as much usage of font-kit as possible (#32758) 2024-07-11 04:25:38 +00:00
canvas_paint_thread.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
Cargo.toml canvas: Remove as much usage of font-kit as possible (#32758) 2024-07-11 04:25:38 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00
raqote_backend.rs canvas: Remove as much usage of font-kit as possible (#32758) 2024-07-11 04:25:38 +00:00
webgl_limits.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
webgl_thread.rs Add OpenHarmony support to servoshell (#32594) 2024-06-28 12:51:50 +00:00