Use FontInstanceFlags::SUBPIXEL_POSITION for font instances on Windows (#33045)

Signed-off-by: crbrz <cristianb@gmail.com>
This commit is contained in:
Cristian Brinza 2024-08-15 13:25:57 +03:00 committed by GitHub
parent 97c84b6127
commit 8f82b2a7cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,7 +272,7 @@ impl PlatformFontMethods for PlatformFont {
} }
fn webrender_font_instance_flags(&self) -> FontInstanceFlags { fn webrender_font_instance_flags(&self) -> FontInstanceFlags {
FontInstanceFlags::empty() FontInstanceFlags::SUBPIXEL_POSITION
} }
fn typographic_bounds(&self, glyph_id: GlyphId) -> Rect<f32> { fn typographic_bounds(&self, glyph_id: GlyphId) -> Rect<f32> {