mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 16:28:09 +02:00
[test] Check text->path with user-fonts (twin)
Check behaviour of user-fonts, twin in particular, when using the text as a path.
This commit is contained in:
parent
669e7ae5c9
commit
f47a93ef30
4 changed files with 10 additions and 1 deletions
11
test/twin.c
11
test/twin.c
|
|
@ -41,6 +41,15 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_move_to (cr, 4, 14);
|
||||
cairo_show_text (cr, "Is cairo's twin giza?");
|
||||
|
||||
cairo_move_to (cr, 4, 34);
|
||||
cairo_text_path (cr, "Is cairo's twin giza?");
|
||||
cairo_fill (cr);
|
||||
|
||||
cairo_move_to (cr, 4, 54);
|
||||
cairo_text_path (cr, "Is cairo's twin giza?");
|
||||
cairo_set_line_width (cr, 2/16.);
|
||||
cairo_stroke (cr);
|
||||
|
||||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
@ -48,5 +57,5 @@ CAIRO_TEST (twin,
|
|||
"Tests the internal font",
|
||||
"twin, font", /* keywords */
|
||||
NULL, /* requirements */
|
||||
140, 20,
|
||||
140, 60,
|
||||
NULL, draw)
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3 KiB |
Loading…
Add table
Reference in a new issue