I figured this out but thought I'd post if helps anyone: So I had a java app that includes my fop config file that includes svg fonts ...
On windows/eclipse testing, it was fine... I moved it to prod/linux and the svg fonts didnt work (that same font used in a non-svg way though is fine)... So the fop config file was being pulled fine, and then it reads the fonts folder from there fine (since using fonts on <fo:block font-family="Stencil"> work fine)... But svg fonts didnt work: <fo:block text-align="left"> <fo:instream-foreign-object xmlns:svg="http://www.w3.org/2000/svg"> <svg:svg xmlns:svg="http://www.w3.org/2000/svg" version="1.1" width="400" height="35" id="svg2"> <svg:g transform="rotate(0)"> <svg:text x="0" y="25" id="text2854" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:blue;fill-opacity:1.0;stroke:none;font-family:Stencil;"> SVG TEST CONFIDENTIAL </svg:text> </svg:g> </svg:svg> </fo:instream-foreign-object> </fo:block> As i was writing this email i saw that fonts need to be registered for them to work (for SVG/Batik fonts in xsl-fo, and not regular xsl-fo fonts). So prob worked on Windows since the font Stencil was in C:/Windows/Fonts also... I added to Fedora linux via below commands and now it works: mkdir /usr/share/fonts/truetype cp /all/the/fonts/i/want/to/use/* /usr/share/fonts/truetype chmod 755 -R /usr/share/fonts/truetype cd /usr/share/fonts fc-cache truetype Enjoy, Arian --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
