xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: Problem rendering right arrow in PDF
Date Fri, 28 Oct 2011 11:44:05 GMT

Le 28/10/2011 12:57, Jeffrey Walton a écrit :
> On Fri, Oct 28, 2011 at 5:59 AM, Pascal Sancho <pascal.sancho@takoma.fr> wrote:
>> Hi,
>> Please, do not mix 2 topics in one thread, that help users to retrieve
>> relevant info in archives.
> Sorry, I don't understand what you meant. Rendering &rarr; and Base-14
> seemed relevant.
>> That said:
>>  assuming your &rarr; is declared in a DTD, you have to set a
>> font-family that contains such glyph, even when in one of Base-14 fonts.
> OK. I looked through fop(1) before posting, and did not see a way to
> add additional fonts.

the glyph corresponding to &rarr; (AKA &#x2192;) is in ZapfDingbats font.
You have to explicitely set it:
<fo:wrapper font-family="ZapfDingbats">&#x2192;</fo:wrapper>

Note that ZapfDingbats onlya have regular glyphes; you have to ensure
that italic or bold are not used.

You can use other fonts; read [1] for further information.

[1] http://xmlgraphics.apache.org/fop/1.0/fonts.html

> Jeff
>> Le 28/10/2011 11:17, Jeffrey Walton a écrit :
>>> Hi All,
>>> My XML source is using &rarr; for a right arrow. FOP renders # instead
>>> of the symbol in a PDF using the Apache FO stylesheet. I believe the
>>> right arrow should be standard (part of Base-14).
>>> I believe the right arrow is part of Base14. When using docbook2pdf
>>> (via openjade tools), the symbol rendered properly.
>>> Ubuntu 10.04, x64. FOP 0.95 (part of Ubuntu package). I believe I have
>>> all the Appache FOP stuff installed. I also have MS TrueType fonts
>>> installed. For waht its worth, I did not have luck with a local
>>> install of FOP 1.0 (see below).
>>> Any ideas?
>>> Jeff
>>> $ pwd
>>> /home/jeffrey/Desktop/fop-1.0
>>> $ ant ./build.xml
>>> Buildfile: build.xml
>>> Target "./build.xml" does not exist in the project "fop".


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

View raw message