xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Mansour <omans...@clever-age.com>
Subject Re: Font in Images
Date Wed, 13 Dec 2006 21:20:38 GMT

Le 13 déc. 06 à 13:47, Kris Wolff a écrit :

> Hi again,
>
> ok my last question is: how do i enable fonts for images?
>
> i render a pdf and a image (currently png, but it is not fixed, so  
> if it possible only in tiff, its ok for me). the pdf works with  
> fonts(see last post), but the png does not.
>
> i try:
>
>     <renderer mime="image/png">
> <fonts>
> <font metrics-url="/Users/kriswolff/Projects/PHYRE-dtp/build/web/ 
> fonts/calligra.xml" kerning="yes" embed-url="file:///Users/ 
> kriswolff/Projects/PHYRE-dtp/build/web/fonts/calligra.ttf">
>     <font-triplet name="Calligrapher" style="normal" weight="normal"/>
> </font>
> </fonts>
>     </renderer>
>
> in configuration, but without any effects.
>

PNG renderer use AWT so you have to put your ttf file in the jre font  
directory. It just work but unfortunatly does not render exactly like  
PDF.

Olivier

>
> Thanx, you are very kind.
>
> kris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



--
Olivier Mansour      http://www.clever-age.com
Clever Age Lyon - conseil en architecture technique
GSM: +33 6 11 03 23 77  Tél: +33 4 78 89 46 45

Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/



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


Mime
View raw message