$svg->setFontSVG("fonts/paris-bold-webfont.svg"); break; }*/ //$svg->setFontSVG("fonts/GoodDog-webfont.svg"); //$svg->setFontSVG("fonts/swiss-924-bt-webfont.svg"); $svg->setFontSVG("fonts/paris-bold-webfont.svg"); $text_length = strlen($text); $svg->setFontSize(100); $svg->setFontColor('#000000'); //$svg->addAttribute("xmlns", "http://www.w3.org/2000/svg","http://www.w3.org/2001/XMLSchema-instance"); //$svg->addAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink","http://www.w3.org/2001/XMLSchema-instance"); $def = $svg->addText($text); $width = ceil($svg->getWidth()) + 20; $height = ceil($svg->getHeight()) + 20; $svg->addAttribute("width", $width . "px"); $svg->addAttribute("height", $height . "px"); /*$svg->addElement('use',array( ));*/ $svg->addElement('rect', array("x" => "0", "y" => "0", "width" => "100%", "height" => "100%", "stroke" => "white", "fill" => "white", "fill-opacity" => "0", "stroke-opacity" => "0")); //$svg->addAttribute("width", "800px"); //$svg->addAttribute("height", "100px"); //$def = 'Hello'; //$rotated_def = $svg->defRotate($def, 40); /*echo "<pre>"; print_r($svg); echo "</pre>";*/ echo $svg->asXML(); /*echo "<pre>"; print_r($_REQUEST); echo "</pre>";*/