You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Jeff Hansen <sq...@hotmail.com> on 2002/06/14 02:41:36 UTC

Embedding fonts

I'm using Adobe Illustrator to embed fonts into my SVG documents, and it's 
giving me a weird error that the CSS code is incorrect.  Is it possible to 
embed fonts into SVG documents in the way that Adobe Illustrator embeds 
them.  When I turn the fonts into outlines (instead of fonts) it renders 
fine in Batik, but when it embeds them it crashes.  The XML code looks like:

font-family{font-face='Font',url:... and a bunch of random characters (which 
is the embedded font)

If this isn't supported right now that's fine but I'd like to know when this 
may be supported in the future.  Thanks.

-Jeff Hansen


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Embedding fonts

Posted by Vincent Hardy <vi...@sun.com>.
Jeff,

Batik does not support the @font-face rule but I am not sure that the 
Base64 encoded fonts are in SVG format.

In Illustrator 9, embeded fonts where in CEF format. If that is still
what Illustrator 10 does, then Batik would not support it, even with 
a <font-face> element (which we support and is equivalent to @font-face:

    <font-face font-family="SunSans-Demi">
        <font-face-src>
            <font-face-uri xlink:href="<font-ref-here>"/>
        </font-face-src>
    </font-face>

Vincent.
Jeff Hansen wrote:
> 
> I'm using Adobe Illustrator to embed fonts into my SVG documents, and it's
> giving me a weird error that the CSS code is incorrect.  Is it possible to
> embed fonts into SVG documents in the way that Adobe Illustrator embeds
> them.  When I turn the fonts into outlines (instead of fonts) it renders
> fine in Batik, but when it embeds them it crashes.  The XML code looks like:
> 
> font-family{font-face='Font',url:... and a bunch of random characters (which
> is the embedded font)
> 
> If this isn't supported right now that's fine but I'd like to know when this
> may be supported in the future.  Thanks.
> 
> -Jeff Hansen
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org