Skip to content

Commit

Permalink
raster backends: Set round_glpyh_positions to ON
Browse files Browse the repository at this point in the history
This fixes "text-rotate" in the test suite for the image backend and
"overlapping-glyphs" for the xcb backend.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
Uli Schlachter committed Oct 21, 2010
1 parent b514863 commit d24e988
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cairo-gl-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ _cairo_gl_surface_get_font_options (void *abstract_surface,
_cairo_font_options_init_default (options);

cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_ON);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_ON);
}

static cairo_status_t
Expand Down
1 change: 1 addition & 0 deletions src/cairo-image-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -4088,6 +4088,7 @@ _cairo_image_surface_get_font_options (void *abstract_surface,
_cairo_font_options_init_default (options);

cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_ON);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_ON);
}

/* legacy interface kept for compatibility until surface-fallback is removed */
Expand Down
1 change: 1 addition & 0 deletions src/cairo-win32-printing-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ _cairo_win32_printing_surface_get_font_options (void *abstract_
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);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_ON);
}

static cairo_int_status_t
Expand Down
1 change: 1 addition & 0 deletions src/cairo-xcb-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ _cairo_xcb_surface_get_font_options (void *abstract_surface,
{
/* XXX copy from xlib */
_cairo_font_options_init_default (options);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_ON);
}

static cairo_status_t
Expand Down
1 change: 1 addition & 0 deletions src/cairo-xlib-screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ _cairo_xlib_screen_get_font_options (cairo_xlib_screen_t *info)
{
if (! info->has_font_options) {
_cairo_font_options_init_default (&info->font_options);
_cairo_font_options_set_round_glyph_positions (&info->font_options, CAIRO_ROUND_GLYPH_POS_ON);

if (info->screen != NULL) {
cairo_xlib_display_t *display;
Expand Down

0 comments on commit d24e988

Please sign in to comment.