mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 07:58:02 +02:00
[test/text-rotate] Use the same text for measuring and printing
This commit is contained in:
parent
261d6b805c
commit
8368fa2fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -139,10 +139,10 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_move_to (cr, x_off - extents.x_bearing, y_off - extents.y_bearing);
|
||||
cairo_set_source_rgb (cr, 0, 0, 0);
|
||||
#if CAIRO_TEST_GENERATE_REFERENCE_IMAGE
|
||||
cairo_text_path (cr, "cairo");
|
||||
cairo_text_path (cr, text);
|
||||
cairo_fill (cr);
|
||||
#else
|
||||
cairo_show_text (cr, "cairo");
|
||||
cairo_show_text (cr, text);
|
||||
#endif
|
||||
cairo_restore (cr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue