servo/components/gfx
Martin Robinson f175679434
gfx: Derive line-through metrics for fonts on MacOS (#31756)
There is now platform-specific way to get metrics for `line-through` on
MacOS and currently striking through simply does not work. The correct
approach here is likely to first search for these metrics in font tables
and then falling back to deriving them. Searching the font tables is a
larger change, so this change adds the fallback mechanism first. This at
least makes sure that strike through renders at all on Mac.

In a followup change we can add support for getting metrics via HarfBuzz
in a platform-independent way, which is what Gecko does.

Fixes #942.
2024-03-19 13:55:12 +00:00
..
platform gfx: Derive line-through metrics for fonts on MacOS (#31756) 2024-03-19 13:55:12 +00:00
tests fonts: Consider Tertiary Ideographic Plane to be CJK (#31670) 2024-03-18 11:45:52 +00:00
text fonts: Consider Tertiary Ideographic Plane to be CJK (#31670) 2024-03-18 11:45:52 +00:00
Cargo.toml Move Stylo to its own repo (#31350) 2024-02-27 15:39:06 +00:00
font.rs clippy: Fix remaining warnings in gfx for MacOS (#31669) 2024-03-15 12:14:36 +00:00
font_cache_thread.rs fonts: Add FontIdentifier and LocalFontIdentifier (#31658) 2024-03-14 11:31:00 +00:00
font_context.rs clippy: Fix remaining warnings in gfx for MacOS (#31669) 2024-03-15 12:14:36 +00:00
font_template.rs clippy: Fix remaining warnings in gfx for MacOS (#31669) 2024-03-15 12:14:36 +00:00
lib.rs gfx: Rename WebrenderSurfman to RenderingContext and move to gfx (#31184) 2024-01-27 17:58:34 +00:00
rendering_context.rs clippy: Fix remaining warnings in gfx for MacOS (#31669) 2024-03-15 12:14:36 +00:00