テキスト表示

<?php
function svgstart(){
header('Content-type: image/svg+xml');
print <<<EOD1
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="layer1"
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 x="0px" y="0px"
 viewBox="0 0 841.9 595.3"
 style="enable-background:new 0 0 841.9 595.3;"
 xml:space="preserve">
<style type="text/css">
       .mfont{font-size:18pt;}
       .wfont{font-size:8pt;text-anchor:middle;}
       .dfont{font-size:11pt;text-anchor:middle;fill:white;}
       .dfont2{font-size:8pt;text-anchor:middle;fill:white;}
	   .c01{fill:#F8C17C;}
	   .c02{fill:#F29A5A;}
	   .c03{fill:#ED7235;}
</style>
EOD1;
}
function svgend() {
       print "</svg>\n";
}
// Main Program
svgstart();
print "<text y=\"30\">筑波学院大学</text>";
svgend();