Hi,

ligature feature depends on font capabilities.
It comes with the complex script new feature added in FOP 1.1 (see [1]).

There is an (incomplete) list of fonts that support such feature (see [2]).

You can disable such behaviour in 2 ways:
 - either disable the whole feature (see [3]),
 - or inserting a ZWNJ where it is relevant (see [4]).


[1] http://xmlgraphics.apache.org/fop/1.1/complexscripts.html
[2]
http://xmlgraphics.apache.org/fop/1.1/complexscripts.html#supported_fonts
[3]
http://xmlgraphics.apache.org/fop/1.1/complexscripts.html#Disabling-complex-scripts
[4] http://xmlgraphics.apache.org/fop/1.1/complexscripts.html#join_controls


2013/5/28 Ulrich Mayring <u...@denic.de>

> Ulrich Mayring wrote:
>
>> Vincent Hennebert wrote:
>>
>>> Hi Ulrich,
>>>
>>> On 28/05/13 11:01, Ulrich Mayring wrote:
>>>
>>>> Hi all,
>>>>
>>>> I just upgraded from 0.95 to 1.1 and one of the issues that crept up is
>>>> that
>>>> suddenly FOP uses ligatures, which it did not use before. Latin words
>>>> containing the letters "fi" or "fl" are now rendered using ligatures in
>>>> the
>>>> PDF, although they are written as two seperate characters in the XML
>>>> input
>>>> file.
>>>>
>>>
>>> Why would you /not/ want to have ligatures? They are there to make the
>>> text look better.
>>>
>>
>> For two reasons:
>>
>> 1. The text looks in fact worse, at least with the font I'm using.
>>
>> 2. Testability. We have thousands of integrations tests for the PDFs we
>> generate with fop and our test framework does not support ligatures. For
>> example, it looks for the phrase "identification" and does not find it in
>> the
>> PDF, if the fi ligature is used.
>>
>
> I have confirmed that this happens only with our font. The supplied FOP
> examples that use Helvetica, Times Roman etc. do not produce ligatures. Is
> this considered to be a bug (ligatures should not appear per default) or a
> missing feature (no way to turn ligatures off, but there should be) or even
> a "works as designed" (we never want to render without ligatures, if they
> are available)?
>
>
> Ulrich
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> fop-users-unsubscribe@**xmlgraphics.apache.org<fop-users-unsubscr...@xmlgraphics.apache.org>
> For additional commands, e-mail: 
> fop-users-help@xmlgraphics.**apache.org<fop-users-h...@xmlgraphics.apache.org>
>
>


-- 
pascal

Reply via email to