Skip to content

Commit

Permalink
Other backends: Set round_glyph_positions to OFF
Browse files Browse the repository at this point in the history
This sets CAIRO_ROUND_GLYPH_POS_OFF in all surface backends that didn't use
CAIRO_ROUND_GLYPH_POS_ON.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
Uli Schlachter committed Oct 21, 2010
1 parent d24e988 commit cee1dad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cairo-pdf-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -3609,6 +3609,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);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_OFF);
}

static cairo_pdf_resource_t
Expand Down
1 change: 1 addition & 0 deletions src/cairo-ps-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,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);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_OFF);
}

static cairo_int_status_t
Expand Down
1 change: 1 addition & 0 deletions src/cairo-svg-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,7 @@ _cairo_svg_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);
_cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_OFF);
}

static const cairo_surface_backend_t cairo_svg_surface_backend = {
Expand Down
1 change: 1 addition & 0 deletions src/cairo-vg-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,7 @@ _vg_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_OFF);
}

static cairo_int_status_t
Expand Down

0 comments on commit cee1dad

Please sign in to comment.