Apply anti-alias mode to fonts with Cairo, see #19049

This commit is contained in:
Paul Cornett 2021-01-19 20:16:16 -08:00
parent 4a3ff8c180
commit c530b89ffa

View File

@ -2939,6 +2939,13 @@ bool wxCairoContext::SetAntialiasMode(wxAntialiasMode antialias)
return false;
}
cairo_set_antialias(m_context, antialiasMode);
cairo_font_options_t* options = cairo_font_options_create();
cairo_get_font_options(m_context, options);
cairo_font_options_set_antialias(options, antialiasMode);
cairo_set_font_options(m_context, options);
cairo_font_options_destroy(options);
return true;
}