Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / show-text-current-point.php
blobb584b14abdb0aebb838799176dee51936ca5772e
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 300, 16);
3 $con = new CairoContext($sur);
4 $con->save ();
5 $con->setSourceRgb ( 1.0, 1.0, 1.0); /* white */
6 $con->paint ();
7 $con->restore ();
9 $con->selectFontFace ( "Bitstream Vera Sans",
10 FONT_SLANT_NORMAL,
11 FONT_WEIGHT_NORMAL);
12 $con->setFontSize (12);
14 $con->setSourceRgb ( 0, 0, 0); /* black */
16 $con->moveTo ( 0, 12);
17 $con->showText ( "Hello from the ");
18 $con->showText ( "show-text-current-point-php");
19 $con->showText ( " test.");
20 $sur->writeToPng("show-text-current-point-php.png");