Turn off antialiasing for rendering to alpha surfaces.

This commit is contained in:
Owen Taylor 2005-07-27 15:04:03 +00:00
parent 7b2b9df4e7
commit c884c4c541
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-07-27 Owen Taylor <otaylor@redhat.com>
* src/cairo-xlib-surface.c (_cairo_xlib_surface_get_font_options):
Turn off antialiasing for rendering to alpha surfaces.
2005-07-27 Carl Worth <cworth@cworth.org>
* ROADMAP: Note that the XFAIL tests all need to be fixed before

View file

@ -1329,9 +1329,12 @@ static void
_cairo_xlib_surface_get_font_options (void *abstract_surface,
cairo_font_options_t *options)
{
cairo_xlib_surface_t *surface = abstract_surface;
*options = surface->screen_info->font_options;
cairo_xlib_surface_t *surface = abstract_surface;
*options = surface->screen_info->font_options;
if (_surface_has_alpha (surface) && options->antialias == CAIRO_ANTIALIAS_SUBPIXEL)
options->antialias = CAIRO_ANTIALIAS_GRAY;
}
static cairo_int_status_t