On 15 Jun 2009, at 19:36, Sam Fuqua wrote:
Hi Sam
> I'm using fop to render PDFs in a variety of languages, including
> Asian fonts. I have no way of knowing what language the PDF will be
> printed in, and I also need it to work on multiple systems. From
> what I've read, the PDF renderer cannot detect OS Fonts.
That is not exactly true. It is true that the PDFRenderer does not
detect OS fonts, but FOP definitely does, to the extent that they
reside in one of the standard font-locations for the target platform.
For example, for Windows, FOP tries '%WINDIR%/FONTS'. On *nix, it will
search dirs like '/usr/local/fonts' and '/usr/share/fonts'.
All that detection is triggered automatically, provided that the
config contains an <auto-detect/> entry, as described here:
http://xmlgraphics.apache.org/fop/0.95/fonts.html#basicsOne limitation in FOP 0.95 is that it does not yet do automatic font-
selection from a specified list.
So, even if there are Asian fonts available on the system, and they
are properly detected, they will only be actually used IFF the
corresponding text is surrounded by an FO (for example, a fo:wrapper)
that explicitly sets the right font-family for that portion of text.
FOP Trunk already has basic support for font-selection-strategy, but
still no character-by-character, so if two subsequent characters need
to be rendered in a different font, they still have to physically
separated by at least a zero-width-space for font-selection to work.
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail:
fop-users-unsubscribe@...
For additional commands, e-mail:
fop-users-help@...