2 $sur = new CairoImageSurface(FORMAT_ARGB32
, 300, 16);
3 $con = new CairoContext($sur);
5 $con->setSourceRgb ( 1.0, 1.0, 1.0); /* white */
9 $con->selectFontFace ( "Bitstream Vera Sans",
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");