Hi Nboire, One other thing I forgot to mention. If the SVG is exported from Illustrator then the embedded font is likely something call CEF (CFF?). This is a weird Adobe thing (True Type wrapper around Type 1 Font data from what I can gather). Batik won't use that data as it can't make sense of it, so it will use some platform font. If the embedded font is TrueType (or Type1 on JDK 5.0 I'm told) then Batik will use it.
svg-developers@yahoogroups.com wrote on 11/05/2005 03:25:43 PM: > Hi nboire, > > From the line numbers in the error messages I deduce that you are using > Batik 1.5 - that release is >2yrs old. IIRC it did not support the > @font-face rule. > I would suggest upgrading to Batik 1.6 as it pretty much does everything > much better. > > I notice that you are invoking Batik with FOP so you will have to > upgrade > your FOP as well. > > svg-developers@yahoogroups.com wrote on 11/05/2005 12:05:07 PM: > > > Hello, > > > > When i tried to convert a svg with a font style, i have this error: > > > > Original message: > > > > at org.apache.batik.css.engine.CSSEngine.parseStyleSheet > > (CSSEngine.java:1025) > > at org.apache.batik.css.engine.CSSEngine.parseStyleSheet > > (CSSEngine.java:1003) > > at > > org.apache.batik.dom.svg.SVGOMStyleElement.getCSSStyleSheet > > (SVGOMStyleElement.java:125) > > at org.apache.batik.css.engine.CSSEngine.getStyleSheetNodes > > (CSSEngine.java:810) > > at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap > > (CSSEngine.java:697) > > at org.apache.batik.css.engine.CSSEngine.getComputedStyle > > (CSSEngine.java:755) > > at org.apache.batik.bridge.CSSUtilities.getComputedStyle > > (CSSUtilities.java:96) > > at org.apache.batik.bridge.CSSUtilities.convertVisibility > > (CSSUtilities.java:524) > > at > > org.apache.batik.bridge.SVGSVGElementBridge.createGraphicsNode > > (SVGSVGElementBridge.java:114) > > at org.apache.batik.bridge.GVTBuilder.build > > (GVTBuilder.java:70) > > at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument > > (PDFRenderer.java:590) > > at org.apache.fop.render.pdf.PDFRenderer.drawImageScaled > > (PDFRenderer.java:380) > > at org.apache.fop.render.AbstractRenderer.renderImageArea > > (AbstractRenderer.java:326) > > at org.apache.fop.image.ImageArea.render(ImageArea.java:107) > > at org.apache.fop.render.AbstractRenderer.renderLineArea > > (AbstractRenderer.java:516) > > at org.apache.fop.layout.LineArea.render(LineArea.java:519) > > at org.apache.fop.render.AbstractRenderer.renderBlockArea > > (AbstractRenderer.java:485) > > at org.apache.fop.layout.BlockArea.render(BlockArea.java:117) > > at org.apache.fop.render.AbstractRenderer.renderAreaContainer > > (AbstractRenderer.java:451) > > at org.apache.fop.layout.ColumnArea.render > > (ColumnArea.java:71) > > at org.apache > > > > --------------------------------------- > > test.fo > > > > <fo:external-graphic src=3D"text.svg"/> > > > > ---------------------------------------- > > text.svg > > > > <?xml version=3D"1.0" encoding=3D"iso-8859-1"?> > > <svg width=3D"400" height=3D"400" > > xmlns=3D"http://www.w3.org/2000/svg" > > xmlns:xlink=3D"http://www.w3.org/1999/xlink"> > > <style type=3D"text/css"> > > <![CDATA[ > > @font-face{font-family:'Myriad-Roman';src:url("data:;base64,\ > > T1RUTwADACAAAQAQQ0ZGIIW/JnoAAAG8AABBgEdQT1MKHBbMAABDPAAADtBjbWFwmD/p5 > > gAAADwA\ > > AAGAAAAAAQAAAAMAAAAMAAQBdAAAAC4AIAAEAA4AJgAnAF8AYAB+AKAAowCmAKkAqwCuA > > LcAuQD+\ > > IBQgGSAdICIgJiCsISL7Av//AAAAIAAnACgAYABhAKAAoQClAKkAqwCtALAAuQC7IBMgG > > CAcICIg\ > > JiCsISL7Af///+EAPf/ > > ........................... > > AAEASwABAEwAAQBNAAYATv/pAE//6QBQ/8wAUf/wAFL/xQBT//QAVP/fAFUABQBW/+UAV > > wAFAFgA\ > > BQBZAAUAWgAFAFv/+wADAAH/nQAN/wIAD/8FAAIACQABAAEAAAAIAAkAAQANAA0AAwAPA > > A8ABAAb\ > > ABwABQAiADwABwBBAFwAIgBlAGUAPgBtAG0APw=3D=3D")} > > ]]> > > </style> > > <g> > > <text><tspan id=3D"my_title" x=3D"10" y=3D"50" font- > > family=3D"'Myriad- > > Roman'" font-size=3D"20">Various Text Elements</tspan></text> > > </g> > > </svg> > > > > > > > > > > > > > > > > > > ----- > > To unsubscribe send a message to: > [EMAIL PROTECTED] > > -or- > > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > > ---- > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > ----- > To unsubscribe send a message to: [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" > ---- > Yahoo! Groups Links > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/