On an old version of FOP there were messages in the Java Console stating it couldn't find the glyph. Now it just prints a #, no messages, not sure what I'm missing. I don't normally see the .fo but I did figure out how to generate one by passing a StreamResult (created with a File) to the transform instead of the normal SAXResult (created with the FOP handler).
-----Original Message----- From: Pascal Sancho [mailto:[email protected]] Sent: Tuesday, August 31, 2010 3:08 AM To: [email protected] Subject: Re: Special characters in AWT preview and PDF renderers Eric, can you provide a short FO snippet, please? Pascal Le 30/08/2010 17:36, Eric Douglas a écrit : > Special font characters are broken in FOP 1.0. > In 0.95 I referenced a unicode character which was not in my custom font and > got a message in my Java Console about glyph not found. > I changed it to a unicode character which is in the font and I get that > character with 0.95. That same code in 1.0 is producing a # and not getting > the glyph not found message. > > > -----Original Message----- > From: Pascal Sancho [mailto:[email protected]] > Sent: Monday, August 30, 2010 11:31 AM > To: [email protected] > Subject: Re: Special characters in AWT preview and PDF renderers > > Hi, > > '#' indicates that the glyph is not available in any font used by FOP. > Note that SVG uses the fonts installed in the system, while FOP needs that > used fonts are set in config file (if you use a non standard font). > So, you have to ensure that the fonts used in SVG are both declared in your > system AND in FOP config file. > > Pascal > > Le 16/08/2010 09:21, Antti Karanta a écrit : >> Hi! >> >> I have an SVG image with greek symbols, e.g. >> >> <text text-anchor="start" x="3.13063" y="1.56532" >> style="fill:#000000; font-family:Swiss,Helvetica,sans-serif; >> font-size: 4.69595" > HEEL φ </text> >> >> This renders fine in FOP AWT preview, but as # in PDF. >> >> The pdf is fine, too, if I change (in the SVG) the first line above to: >> >> <text text-anchor="start" x="3.13063" y="1.56532" >> style="fill:#000000; >> font-size: 4.69595" > >> >> i.e. remove the font references. >> >> >> I know the different renderers handle fonts differently, but this >> far I have been able to use os fonts in pdf by having >> >> <fonts> >> <auto-detect/> >> </fonts> >> >> in my fop.xconf >> >> However, in this case it does not seem to help. >> >> >> Is there some other magic I need to do to make os fonts work ok >> inside svg? Or am I missing something else? >> >> >> Environment: fop 0.95 and 1.0, java 1.6.0_20, win xp sp 3 >> >> >> >> >> ::Antti:: >> >> >> --------------------------------------------------------------------- >> 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] > > > --------------------------------------------------------------------- > 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]
<?xml version="1.0" encoding="ISO-8859-1"?>
<FORM_DATA>
<PAGE_DATA>
<ORIENTATION>PORTRAIT</ORIENTATION>
<MARGIN_TOP>18px</MARGIN_TOP>
<MARGIN_LEFT>18px</MARGIN_LEFT>
<MARGIN_BOTTOM>18px</MARGIN_BOTTOM>
<MARGIN_RIGHT>27px</MARGIN_RIGHT>
<TXT>
<FONT_FAMILY>Lucida Sans Typewriter</FONT_FAMILY>
<FONT_WEIGHT>400</FONT_WEIGHT>
<FONT_STYLE></FONT_STYLE>
<FONT_SIZE>9.6863</FONT_SIZE>
<MAXCOLS>96</MAXCOLS>
<MAXROWS>64.6367</MAXROWS>
<X>11</X>
<Y>1</Y>
<W>8</W>
<H>1</H>
<TEXT>□</TEXT>
</TXT>
</PAGE_DATA>
</FORM_DATA>
test.fo
Description: test.fo
test.pdf
Description: test.pdf
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
