From c530b89ffa9a1aa9c874d388c7f37333953f3b67 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 19 Jan 2021 20:16:16 -0800 Subject: [PATCH] Apply anti-alias mode to fonts with Cairo, see #19049 --- src/generic/graphicc.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 5d08f710db..d524568970 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -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; }