1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-24 08:08:44 -05:00

GTK: slightly reword a comment to reflect Cairo documentation

The Cairo documentation is clear that cairo_set_antialias() only
affects shape drawing and not text rendering.  To change
anti-aliasing settings for font rendering you need
cairo_font_options_set_antialias() instead.  Therefore the comment
can be a bit more certain than just describing what Cairo "appears"
to do.
This commit is contained in:
Ben Harris 2025-04-16 22:02:56 +01:00
parent d9a2620d01
commit 5cf14b4f27

View File

@ -923,10 +923,12 @@ static void cairo_setup_draw_ctx(GtkFrontend *inst)
cairo_set_line_width(inst->uctx.u.cairo.cr, 1.0);
cairo_set_line_cap(inst->uctx.u.cairo.cr, CAIRO_LINE_CAP_SQUARE);
cairo_set_line_join(inst->uctx.u.cairo.cr, CAIRO_LINE_JOIN_MITER);
/* This antialiasing setting appears to be ignored for Pango
* font rendering but honoured for stroking and filling paths;
* I don't quite understand the logic of that, but I won't
* complain since it's exactly what I happen to want */
/*
* This antialiasing setting doesn't affect Pango font rendering
* but does affect stroking and filling paths; I don't quite
* understand the logic of that, but I won't complain since it's
* exactly what I happen to want.
*/
cairo_set_antialias(inst->uctx.u.cairo.cr, CAIRO_ANTIALIAS_NONE);
}
#endif