Fix font rendering at very large scales (#37440)

Release Notes:

- Fixed fonts disappearing at very large scales on windows
This commit is contained in:
localcc
2025-09-03 09:21:45 +00:00
committed by GitHub
parent 6feae92616
commit c446662862
@@ -742,6 +742,10 @@ impl DirectWriteState {
&mut grid_fit_mode,
)?;
}
let rendering_mode = match rendering_mode {
DWRITE_RENDERING_MODE1_OUTLINE => DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC,
m => m,
};
let glyph_analysis = unsafe {
self.components.factory.CreateGlyphRunAnalysis(