Temporarily remove all text from this test case until we come up with an approach for drawing the same text with different freetype configurations.

This commit is contained in:
Carl Worth 2005-04-13 14:24:20 +00:00
parent 21268bc359
commit f3af02bb0e
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-04-13 Carl Worth <cworth@cworth.org>
* test/coverage-ref.png:
* test/coverage.c: (draw_funcs), (draw): Temporarily remove all
text from this test case until we come up with an approach for
drawing the same text with different freetype configurations.
2005-04-13 Owen Taylor <otaylor@redhat.com>
* src/cairo-traps.c (_cairo_traps_extract_region): Work around

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -84,12 +84,14 @@ set_translucent_image_pattern (cairo_t *cr, int x, int y)
cairo_set_alpha (cr, 0.5);
}
#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
static void
draw_text (cairo_t *cr, int x, int y)
{
cairo_rel_move_to (cr, 0, fontsize);
cairo_show_text (cr, "Aa");
}
#endif
static void
draw_polygon (cairo_t *cr, int x, int y)
@ -114,7 +116,9 @@ static void (*pattern_funcs[])(cairo_t *cr, int x, int y) = {
};
static void (*draw_funcs[])(cairo_t *cr, int x, int y) = {
#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
draw_text,
#endif
draw_polygon,
};
@ -137,10 +141,12 @@ draw (cairo_t *cr, int width, int height)
int i, j, x, y;
#if WE_FIX_THE_TEST_SO_THAT_IT_DOES_NOT_DEPEND_ON_HOW_FREETPYE_IS_COMPILED
cairo_select_font (cr, fontname,
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, fontsize);
#endif
for (j = 0; j < ARRAY_SIZE (draw_funcs); j++) {
for (i = 0; i < ARRAY_SIZE (pattern_funcs); i++) {