gsk: Preserve the antialiasing setting of the font

When we get an unhinted font for text node extents, don't change
the antialiasing setting. It doesn't affect the extents we get
here, but if we later need an unhinted font for rendering, the
one we create this way will be the right one, so it will already
exist.
This commit is contained in:
Matthias Clasen
2024-03-02 20:19:38 -05:00
parent ddedb39329
commit d1b52cc292

View File

@@ -5825,7 +5825,7 @@ gsk_text_node_new (PangoFont *font,
PangoFont *unhinted;
int n;
unhinted = gsk_get_hinted_font (font, CAIRO_HINT_STYLE_NONE, CAIRO_ANTIALIAS_GRAY);
unhinted = gsk_get_hinted_font (font, CAIRO_HINT_STYLE_NONE, CAIRO_ANTIALIAS_DEFAULT);
pango_glyph_string_extents (glyphs, unhinted, &ink_rect, NULL);
g_object_unref (unhinted);