xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Whiting" <barry_whit...@londonmarketing.com>
Subject RE: Embeded SVG fonts
Date Tue, 11 Nov 2008 12:26:15 GMT
Hi Vincent

We are using fop 0.95.  The svg image has to be added as a background image to a block container
so that we can overlay another svg on top of this like a pointer on a map so Im not sure if
thats my problem or not?

 I have know changed my config as your suggestion which is cool but hasn't helped yet.

I have attached an example fo, fop-config and svg image for you hopefully this will help.



-----Original Message-----
From: Vincent Hennebert [mailto:vhennebert@gmail.com] 
Sent: 11 November 2008 12:10
To: fop-users@xmlgraphics.apache.org
Subject: Re: Embeded SVG fonts

Hi Barry,

Barry Whiting wrote:
> Ok Jeremias I have managed to generate the metrics file for the 3 fonts
> I need to embed and have added this to my config file
> 	<font
> metrics-url="/data/webroot/www.londontown.com/HotelPrintMap/fonts/arial.
> xml" kerning="yes"
> embed-url="/data/webroot/www.londontown.com/HotelPrintMap/fonts/arial.tt
> f">
> 		<font-triplet name="ArialMT" style="normal"
> weight="normal"/>
> 	</font>
> For some reason these 3 fonts are not being embedded how ever which I
> don't understand as I have other fonts in this config file that does
> embed correctly.
> I wondered if you could see if there is anything I have done from this
> config?

Which FOP version are you using? This should work fine with the latest
0.95 one. Also, with that version you don’t need to generate XML metrics
any more, just specifying the embed-url attribute is enough.

Make sure the URIs giving access to the fonts are correct. In the
example you provided they are absolute and there’s no scheme (http:,
file: or whatever). Are you sure this is what you want?

Also, make sure the value you give to the ‘name’ attribute of
font-triplet matches the font-family value in the SVG file.

If all of that fail, please provide us with small XSL-FO and SVG samples
and your config file, so that we can have a closer look.



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

View raw message