summaryrefslogtreecommitdiff
path: root/test/large-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-05-23 20:41:26 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-05-23 20:41:26 -0400
commitd947ee0ef68cbc371d058b13b98c013b82f794ba (patch)
tree8ef88b7dd767a64ab06e508c5ae3feaee5d54f97 /test/large-font.c
parentdb1b18232b6854d14a1ee45a31bc2508ef36bc1a (diff)
downloadcairo-d947ee0ef68cbc371d058b13b98c013b82f794ba.tar.gz
[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.
Diffstat (limited to 'test/large-font.c')
-rw-r--r--test/large-font.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/test/large-font.c b/test/large-font.c
index 7554a3ee5..85c135d93 100644
--- a/test/large-font.c
+++ b/test/large-font.c
@@ -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;
}