mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00

This is designed to mitigate the problem of third-party fonts that render poorly under DirectWrite's bold simulation, by using multi-strike synthetic bold (like we use on macOS) instead. The behavior is controlled by a pref, so that we can readily switch between using DWrite's bold simulation for all fonts (pref=2, our current behavior); using it only for installed fonts and falling back to multi-strike for webfonts (pref=1, new behavior); or never using the DWrite simulation (pref=0). Differential Revision: https://phabricator.services.mozilla.com/D137584