Hi,

just in case somebody else has this problem: I ended up wrapping every single character inside a fo:character element and set the hyphenate attribute to false. This also prevents hyphenation and doesn't require the Arial Unicode MS font.
e.g.
<fo:character hyphenate="false" character="C"/>
<fo:character hyphenate="false" character="A"/>
<fo:character hyphenate="false" character="N"/>
<fo:character hyphenate="false" character="o"/>
<fo:character hyphenate="false" character="p"/>
<fo:character hyphenate="false" character="e"/>
<fo:character hyphenate="false" character="n"/>

I'm still wondering why XSL-FO doesn't allow the hyphenate attribute on fo:inline elements....

Regards,
Matthias Reischenbacher

On 10.09.2010 12:09, Matthias Reischenbacher wrote:
Hi Simon,

Any non-word character prevents hyphenation. Word characters are
defined in the classes element in the source hyphenation file. For
German these are a-z, ä, å, ö, ü and ß. WORD JOINER is not one of
them, but apparently it is filtered out. I tried ZERO WIDTH JOINER,
but that is rendered as an 'unknown glyph' #.

Thanks for pointing into this direction. Using the ZERO WIDTH JOINER
prevents hyphenation. I had to use Arial Unicode MS font in order to not
get the "unknown glyph" error.

What is kind of strange although, when using some other font, which also
contains this character (e.g. Arial, Calibri, Times New Roman etc. [1]),
the character gets displayed in a weird way (have a look at the attached
screenshot).

I'd prefer to use Arial because it's a Windows standard font, but if
that's not possible I'm happy with the current solution too. Which part
of the FOP code is responsible for drawing this character in PDF output?

[1] http://www.fileformat.info/info/unicode/char/200d/fontsupport.htm

Regards,
Matthias



__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5440 (20100910) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5440 (20100910) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to