[test/large-font] Make the font REALLY LARGE

10000 that is.  xlib fails now again.  Not because of glyph size issues.
Because we skip rendering any glyphs with positions not in range -1024..15359.
Working on a fix.
This commit is contained in:
Behdad Esfahbod 2008-05-23 20:41:26 -04:00
parent db1b18232b
commit d947ee0ef6
4 changed files with 5 additions and 16 deletions

View file

@ -443,7 +443,6 @@ REFERENCE_IMAGES = \
infinite-join-ref.png \
infinite-join-ps-ref.png \
large-font-ref.png \
large-font-ps-ref.png \
large-source-ref.png \
leaky-dash-ps-argb32-ref.png \
leaky-dash-ps-rgb24-ref.png \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -41,9 +41,9 @@
#include "cairo-test.h"
#define WIDTH 400
#define HEIGHT 200
#define TEXT_SIZE 160
#define WIDTH 800
#define HEIGHT 800
#define TEXT_SIZE 10000
static cairo_test_draw_function_t draw;
@ -69,19 +69,9 @@ draw (cairo_t *cr, int width, int height)
CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, TEXT_SIZE);
font_options = cairo_font_options_create ();
cairo_get_font_options (cr, font_options);
cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
cairo_set_font_options (cr, font_options);
cairo_font_options_destroy (font_options);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_set_font_size (cr, 160);
cairo_move_to (cr, 5, 160);
cairo_show_text (cr, "MoW");
cairo_move_to (cr, -TEXT_SIZE / 2, TEXT_SIZE / 2);
cairo_show_text (cr, "xW");
return CAIRO_TEST_SUCCESS;
}