Typo ;)
[phpCairo.git] / testcases / phpCairo / show-text-current-point.php
blob655f4d4420bfadaf9165b64dd57ccc36ce5e6693
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 300, 16);
3 $con = new CairoContext($sur);
4 $con->save ();
5 $con->set_source_rgb ( 1.0, 1.0, 1.0); /* white */
6 $con->paint ();
7 $con->restore ();
9 $con->select_font_face ( "Bitstream Vera Sans",
10 FONT_SLANT_NORMAL,
11 FONT_WEIGHT_NORMAL);
12 $con->set_font_size (12);
14 $con->set_source_rgb ( 0, 0, 0); /* black */
16 $con->move_to ( 0, 12);
17 $con->show_text ( "Hello from the ");
18 $con->show_text ( "show-text-current-point-php");
19 $con->show_text ( " test.");
20 $sur->write_to_png("show-text-current-point-php.png");