Hi Vincent gave a fairly concise answer here, which may also help in finding out which fonts Java has registered:
http://markmail.org/search/?q=Missing+Font+SVG+list%3Aorg.apache.xmlgraphics.fop-users#query:Missing%20Font%20SVG%20list%3Aorg.apache.xmlgraphics.fop-users+page:1+mid:obiwsaqa32ocd7qc+state:results Also, you don't need the metrics file, they're deprecated, and depending on which Linux flavour you've chosen, you can install Arial (mscorefonts in Ubuntu) from the standard repositories. Hope that helps Mehdi On 20 April 2011 13:18, Pascal Sancho <[email protected]> wrote: > Hi, > SVG uses sytem font (because rendered via AWT), while FOP uses > explicitely specified fonts (in conf file) for PDF rendering. > > To ensure that text in SVG uses a specific font, this font must be > declared both in system font system and in FOP conf file (with the same > name, of course). > > Le 20/04/2011 13:19, Bogusław Fries a écrit : >> Hi all, >> I need some help for svg fonts configuration in debian. >> <fo:block> >> <fo:instream-foreign-object> >> <svg:svg width="4.0mm" height="28mm"> >> <svg:text x="3" y="0" >> font-family="Arial” font-size="6px" writing-mode="tb" >> glyph-orientation-vertical="90deg"> >> l:text>Adres doręczenia</xsl:text> >> </svg:text> >> </svg:svg> >> </fo:instream-foreign-object> >> </fo:block> >> In the configuration file there is: >> <font metrics-file="fonts95-v3/arial.xml" kerning="yes" >> embed-url="fonts95-v3/arial.ttf"> >> <font-triplet name="Arial" style="normal" >> weight="normal"/> >> </font> >> There is the polish national character “ę”. On the PDF is Adres >> dor#czenia printed. Acrobat reader shows the Helvetica is embedded >> instead of Arial. >> I am using fop 1.0, batik-all-1.7, xmlgraphics-commons-1.4 >> I found only one solution but it is not acceptable for our system >> administrator: I put Arial.ttf file in /usr/share/fonts and run fc-chache >> When I am using fop 0.95 all is correct without any modification in the >> operating system. >> Thanks & Regards >> *Bogusław Fries* >> Senior programmer >> DPD Poland > > -- > Pascal > > --------------------------------------------------------------------- > 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]
