There are limits to what degree FOP can control the use of fonts inside
SVG. Certain text elements are always painted as shapes instead of as
text. It depends on the FOP and Batik version in use. In the case that
FOP can't control text painting, Batik does it with the help of the
Java2D/AWT subsystem. That means you need to make the font available to
the Java2D/AWT subsystem by installing the font in your operating system
and/or your JRE. You will also need to make sure you use the font-family
name that Java presents the installed font under, otherwise it will be
subsituted.

On 15.03.2006 13:01:32 Lev T wrote:
> Hi.
> 
> I am creating PDF documents using fop, those documents include embedded fonts 
> and SVG images, which use same embedded fonts.
> 
> PDF I get does not use selected fonts in SVGs. What do I do wrong ?
> 
> Attached files are:
> example.fo : Example file with SVG text
> example.pdf : PDF built from example.fo with embedded font
> userconf.xml : fop configuration file (needed for embedding font)
> 
> To run:
> 1. Create font map (I used comic.ttf font)
> # fop-ttfreader fontname.ttf fontname.xml
> 
> 2. Edit userconf.xml, change font name if you can not locate comic.ttf
> 
> 3. Run fop:
> # fop -c userconf.xml -fo example.fo -pdf example.pdf
> 
> -- 
> Regards,
> Lev T.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to