mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
[test] In the bitmap-font test, break cairo_text_path() call into two
such that it checks current-point handling after that call. It fails now, because cairo_text_path does not set current-point explicitly.
This commit is contained in:
parent
a487d09421
commit
b63f5ae58f
1 changed files with 4 additions and 2 deletions
|
|
@ -110,9 +110,11 @@ draw (cairo_t *cr, int width, int height)
|
|||
* fonts at all should fix this. */
|
||||
cairo_move_to (cr, width -1, 2 * (TEXT_SIZE - 5));
|
||||
cairo_rotate (cr, M_PI);
|
||||
cairo_show_text (cr, "the quick brown fox");
|
||||
cairo_show_text (cr, "the quick");
|
||||
cairo_show_text (cr, " brown fox");
|
||||
|
||||
cairo_text_path (cr, " jumps over a lazy dog");
|
||||
cairo_text_path (cr, " jumps over");
|
||||
cairo_text_path (cr, " a lazy dog");
|
||||
cairo_fill (cr);
|
||||
|
||||
return CAIRO_TEST_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue