Files
servo/components/fonts/platform
Martin Robinson 6b26d86491 fonts: Use the system font API to get a fallback on macOS (#42776)
As a last resort, as the system font API to find a suitable fallback
font on macOS. This allows macOS to use the fonts that are found in the
`/System/Library/Fonts/Supplemental` directory, which normally aren't
available. This is currently used as a last resort because these fonts
cannot currently be shared between font groups. A future change will try
to make this possible and prefer this API to the old system font lists.
For now, this allows text to render in exchange for a bit more memory
usage.

This fixes the rendering of Adlam and many other scripts on macOS.

Testing: WPT tests are not currently run for macOS, but I've verified
that this
improves rendering of Adlam and, in general, in the `alluni.txt`
testcase.
Fixes: #38403. This is part of #41426.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2026-02-23 15:28:39 +00:00
..