My question isn't actually adobe-specific. I mostly use Firefox, and it's
not rendering properly in firefox, ASV, or illustrator. I was wondering if
my syntax was wrong.  I'll check out the examples. If you have a sample of
code you've used that worked for this and it's not too much trouble, I'd
also like to take a look at it (unless it's basically the same as the
examples). Thanks for the response, I appreciate your time.

-Rob 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 13, 2006 6:15 PM
To: [email protected]
Cc: [email protected]
Subject: RE: Font Linking

Hi Rob,

"Rob Hinst" <[EMAIL PROTECTED]> wrote on 11/13/2006 11:46:34 AM:

> Has anyone on this list ever been able to successfully use external 
> SVG
font
> definitions in their SVG documents? 

   Yes, I have used external SVG font definitions many times, but I tend to
use Batik to render my SVG ;)  There are a number of examples in the samples
directory, especially the
directory: samples/tests/spec/fonts.
   In particular, fontExternalFont.svg and fontFace.svg

   If you have specific question about the Adobe SVG Viewer you might be
better off asking on the Yahoo! svg-developers forum.

> 
> 
> -----Original Message-----
> From: Rob Hinst [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 12, 2006 11:03 AM
> To: [email protected]
> Subject: Font Linking
> 
> 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]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to