You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a glyph is missing in the middle of a run and a fallback font is selected for it, then instead of scaling usWinAscent + usWinDescent to \fs for the fallback font in the same manner as we do for the main font, we should scale the fallback’s units_per_EM to the same amount of pixels that the main font’s units_per_EM occupy after applying the main font’s scale, i. e.:
This seems to be how GDI does it (see test in #706 (comment), although more comprehensive tests are welcome), and this would also help with fallback between Noto Sans and Noto Sans Arabic in mpv-player/mpv#13396.
The text was updated successfully, but these errors were encountered:
When a glyph is missing in the middle of a run and a fallback font is selected for it, then instead of scaling
usWinAscent + usWinDescent
to\fs
for the fallback font in the same manner as we do for the main font, we should scale the fallback’sunits_per_EM
to the same amount of pixels that the main font’sunits_per_EM
occupy after applying the main font’s scale, i. e.:This seems to be how GDI does it (see test in #706 (comment), although more comprehensive tests are welcome), and this would also help with fallback between
Noto Sans
andNoto Sans Arabic
in mpv-player/mpv#13396.The text was updated successfully, but these errors were encountered: