You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Antoine Rauzy <ar...@iml.univ-mrs.fr> on 2007/08/12 11:56:36 UTC
Problem with fonts
Hello everybody,
I've installed fop on my machine, a PC under windows XP. I just
downloaded the binary (I made no reconfiguration).
I'm trying to compile a .fo file obtained from a docbook source file,
via xsltproc. My .fo file contains greek letters. In the resulting pdf
file, I get # characters instead of greek letters.
The greek letters are included into a bloc with a font-family
attribute like 'font-family="serif,Symbol,ZapfDingbats"'. If I switch
serif and Symbol manually, then the pdf file does contain the greek
letters but #'s are now for ascii characters.
In a word, it seems that fop considers only the first font family of
the list.
Is it a problem due to my installation? What can I do to prevent it?
Thanks in advance -- Antoine Rauzy
--
Antoine RAUZY
Institut de Mathématiques de Luminy tel+fax +33 4 91 26 96 34
163, avenue de Luminy, Case 907 mobile +33 6 89 98 95 06
13288 Marseille CEDEX 9 FRANCE email : arauzy@iml.univ-mrs.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with fonts
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 12, 2007, at 18:05, Antoine Rauzy wrote:
Hi Antoine
> Thanks a lot. I feel somehow less stupid.
> I wrote a couple of ugly perl scripts to avoid the problem: one
> to encode character entities before producing the .fo file and the
> other to decode them surrounded with <fo:inline font-
> family="Symbol">entity</fo:inline> after. In that way, I can go on
> producing html and pdf file from the same docbook source. This
> works fine.
As a small tip:
I think <fo:wrapper font-family="Symbol">...</fo:wrapper> will be
slightly more efficient, since it avoids an extra inline-area.
> Nevertheless, I hope this problem will be fixed in future versions.
We'll do our best. It's close, but not yet for the upcoming release.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with fonts
Posted by Antoine Rauzy <an...@arboost.com>.
Dear Andreas,
Thanks a lot. I feel somehow less stupid.
I wrote a couple of ugly perl scripts to avoid the problem: one to
encode character entities before producing the .fo file and the other to
decode them surrounded with <fo:inline
font-family="Symbol">entity</fo:inline> after. In that way, I can go on
producing html and pdf file from the same docbook source. This works fine.
Nevertheless, I hope this problem will be fixed in future versions.
Best regards -- Antoine Rauzy
Andreas L Delmelle a écrit :
> On Aug 12, 2007, at 11:56, Antoine Rauzy wrote:
>
> Hi
>
>> I've installed fop on my machine, a PC under windows XP. I just
>> downloaded the binary (I made no reconfiguration).
>> I'm trying to compile a .fo file obtained from a docbook source
>> file, via xsltproc. My .fo file contains greek letters. In the
>> resulting pdf file, I get # characters instead of greek letters.
>> The greek letters are included into a bloc with a font-family
>> attribute like 'font-family="serif,Symbol,ZapfDingbats"'. If I
>> switch serif and Symbol manually, then the pdf file does contain the
>> greek letters but #'s are now for ascii characters.
>> In a word, it seems that fop considers only the first font family
>> of the list.
>>
>> Is it a problem due to my installation? What can I do to prevent it?
>
> It is a limitation in FOP, I'm afraid. We do not yet have a proper
> implementation of the fallback mechanism for font-family. In the
> above, if the first specified font-family, serif, does not contain a
> glyph for a given character, then you'll always get the annoying '#'.
> The Symbol and ZapfDingbats families are never considered,
> unfortunately...
>
> The only way to prevent it, would be to tweak the Docbook stylesheets
> to use the proper font-families in the right situations.
>
>
> HTH!
>
> Cheers
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
--
Antoine Rauzy ARBoost Technologies
tel+fax: 33 +4 91 73 28 77 24, Allée Chabrier
mobile: 33 +6 89 98 95 06 13008 Marseille
antoine.rauzy@arboost.com FRANCE
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with fonts
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 12, 2007, at 11:56, Antoine Rauzy wrote:
Hi
> I've installed fop on my machine, a PC under windows XP. I just
> downloaded the binary (I made no reconfiguration).
> I'm trying to compile a .fo file obtained from a docbook source
> file, via xsltproc. My .fo file contains greek letters. In the
> resulting pdf file, I get # characters instead of greek letters.
> The greek letters are included into a bloc with a font-family
> attribute like 'font-family="serif,Symbol,ZapfDingbats"'. If I
> switch serif and Symbol manually, then the pdf file does contain
> the greek letters but #'s are now for ascii characters.
> In a word, it seems that fop considers only the first font family
> of the list.
>
> Is it a problem due to my installation? What can I do to prevent
> it?
It is a limitation in FOP, I'm afraid. We do not yet have a proper
implementation of the fallback mechanism for font-family. In the
above, if the first specified font-family, serif, does not contain a
glyph for a given character, then you'll always get the annoying '#'.
The Symbol and ZapfDingbats families are never considered,
unfortunately...
The only way to prevent it, would be to tweak the Docbook stylesheets
to use the proper font-families in the right situations.
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org