Hi, I'm having trouble linking external fonts in my SVG document. I used batik-ttf2svg to create an SVG font definition file for a font named apapa. The conversion ran without any errors. Here is what my font definition file looks like:
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg width="100%" height="100%"> <defs > <font id="apapa" horiz-adv-x="618" ><font-face font-family="apapa" units-per-em="1000" panose-1="0 0 4 0 0 0 0 0 0 0" ascent="974" descent="-200" alphabetic="0" /> <missing-glyph horiz-adv-x="500" d="M63 0V974H438V0H63ZM125 63H375V912H125V63Z" /> ... A bunch of glyph definitions here... </font> </defs> </svg> The URL of the file is http://ipi.exobitnetworks.com/fonts/apapa.svg#apapa The SVG document in which I am attempting to use the apapa font looks like this: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="560" height="361.290322580645" > <defs> <style type="text/css"> <![CDATA[ @font-face { font-family: 'apapa'; font-weight: normal; font-style: italic; src: url("http://ipi.exobitnetworks.com/fonts/apapa.svg#apapa") format(svg) } ]]> </style> </defs> <g style="font-family: apapa; font-size: 20px"> <text x="50" y="50" fill="#ff0000" style="font-family: apapa"> This should appear as apapa</text> </g> </svg> But when I view the SVG document (in Firefox, in IE with the Adobe plugin, or in Adobe Illustrator CS2), it's just substituting a default font, and not rendering the text with the apapa font. Does anyone see anything obviously wrong with the above code? I used the example I found at http://www.w3.org/TR/SVG11/fonts.html as a guide, but I may have missed an important detail. Thanks in advance, Rob Hinst --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
