Hi Andreas,

Just to make sure that I'm understanding what you you're saying:

   - the <auto-detect> tag will cause FOP to detect my fonts
   - in order to print non-Latin text in non-Latin fonts, I need to specify
   which font family to use

What is the purpose of the font-selection-strategy property?  If I don't
need character by character font specification, is this a way to
automatically have non-Latin text rendered using a non-Latin fonts?

Thanks again for your always great support.

Sam

On Mon, Jun 15, 2009 at 3:07 PM, Andreas Delmelle <
[email protected]> wrote:

> 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#basics
>
> One 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Sam Fuqua
ΣΝ ΘΗ 454

Reply via email to