mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
Set antialiasing to gray in default font options for PS/PDF/SVG
This only affects the image fallback in those backends, and avoids getting colored pixels there if user's fontconfig configuration turns subpixel on. This doesn't quite fix that problem though, more changes are needed/coming.
This commit is contained in:
parent
2d483e0785
commit
1f854fcf32
3 changed files with 6 additions and 3 deletions
|
|
@ -1463,6 +1463,7 @@ _cairo_pdf_surface_get_font_options (void *abstract_surface,
|
|||
|
||||
cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
|
||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
||||
cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_GRAY);
|
||||
}
|
||||
|
||||
static cairo_pdf_resource_t
|
||||
|
|
|
|||
|
|
@ -1789,6 +1789,7 @@ _cairo_ps_surface_get_font_options (void *abstract_surface,
|
|||
|
||||
cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
|
||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
||||
cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_GRAY);
|
||||
}
|
||||
|
||||
static cairo_int_status_t
|
||||
|
|
|
|||
|
|
@ -1637,10 +1637,11 @@ static void
|
|||
_cairo_svg_surface_get_font_options (void *abstract_surface,
|
||||
cairo_font_options_t *options)
|
||||
{
|
||||
_cairo_font_options_init_default (options);
|
||||
_cairo_font_options_init_default (options);
|
||||
|
||||
cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
|
||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
||||
cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
|
||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
|
||||
cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_GRAY);
|
||||
}
|
||||
|
||||
static const cairo_surface_backend_t cairo_svg_surface_backend = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue