servo/components/gfx/platform
Martin Robinson 43a3c9c319
fonts: Improve font fallback (#32286)
- Better detect situations where emoji is necessary by looking ahead one
  character while laying out. This allow processing Unicode presentation
  selectors. When detecting emoji, put emoji fonts at the front of
  fallback lists for all platforms.

  This enables monochrome emoji on Windows. Full-color emoji on Windows
  probably needs full support for processing the COLR table and drawing
  separate glyph color layers.

- Improve the font fallback list on FreeType platforms. Ideally, Servo
  would be able to look through the entire font list to find the best
  font for a certain character, but until that time we can make sure the
  font list contains the "Noto Sans" fonts which cover most situations.

Fixes #31664.
Fixes #12944.
2024-05-27 10:02:26 +00:00
..
freetype fonts: Improve font fallback (#32286) 2024-05-27 10:02:26 +00:00
macos fonts: Improve font fallback (#32286) 2024-05-27 10:02:26 +00:00
windows fonts: Improve font fallback (#32286) 2024-05-27 10:02:26 +00:00
mod.rs Add font-fallback on OpenHarmony and fix several compilation issues (#32141) 2024-05-02 18:32:51 +00:00