Hi Peter, as far as I remember the usual suspects were:
- expected font (family) not installed on your machine : make a 14pt Times available ... - headless server irritate the calculation of font sizes : some solutions discussed here http://fortylines.com/blog/fopHeadlessServer.blog.html Greetings and good luck, Andreas > Hi, > > Sorry previous email send before fully written > > I am having problems with svg text in fop on cocoon-2.1.12 Linux > The problem does not occur on cocoon-2.1.12 Windows > > I get the following error whenever the svg contains <text> eg with > > <fo:instream-foreign-object content-width="15px" > content-height="100px" padding-right="0.2cm"> > <svg xmlns="http://www.w3.org/2000/svg" width="15.5" > height="15.5" viewBox="0 0 15.5 15.5"> > <g> > <text x="6.0" y="11" style="text-anchor:middle ; > fill:#ffffff ; font-size:10; font-weight:normal ; > letter-spacing:-1.5">EUR</text> > </g> > </svg> > </fo:instream-foreign-object> > > I get > > *exception* > > javax.servlet.ServletException: Servlet execution threw an exception > > *root cause* > > java.lang.NoClassDefFoundError: Could not initialize class > org.apache.batik.gvt.font.FontFamilyResolver > org.apache.batik.bridge.SVGTextElementBridge.getFontList(Unknown > Source) > org.apache.batik.bridge.SVGTextElementBridge.getAttributeMap(Unknown > Source) > > org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown > Source) > org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(Unknown > Source) > org.apache.batik.bridge.SVGTextElementBridge.computeLaidoutText(Unknown > Source) > org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown > Source) > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) > org.apache.batik.bridge.GVTBuilder.build(Unknown Source) > ETC > > > > I assume that the linux server is missing the fop text package > > Help please > > Peter > > -- Andreas Kühne phone: +49 177 293 24 97 mailto: kue...@trustable.de Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna Amtsgericht Hamm HRB 5868 Directors Andreas Kühne, Heiko Veit Company UK Company No: 5218868 Registered in England and Wales --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org