Apply anti-alias mode to fonts with Cairo, see #19049
This commit is contained in:
parent
4a3ff8c180
commit
c530b89ffa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user