--- Comment #1 from Jeremias Maerki <[EMAIL PROTECTED]> 2008-12-10 02:53:53
This is a known issue and it's not primarily a FOP issue, but a Batik issue.
I've recently documented that particularity although I still haven't
re-published the updated website. For your convenience here's an excerpt:
<title>Font selection notes</title>
Apache Batik uses the AWT/Java2D subsystem as font source while FOP
has its on font
subsystem. Great care has been taken that font selection does the
best possible choices.
But it must be noted when creating PDF or PostScript that a font
used in SVG graphics
needs to be registered with the operating system as well as in
By using FOP's font auto-detection, you simply have to install the
font in the operating
system and not care about anything else. This is less of an issue
if you create
formats like TIFFs, PNGs or PCL because in these cases SVG graphics
are usually rendered
to bitmaps which means that on both sides (Batik and FOP),
AWT/Java2D is used as the
single font source.
Whenever an SVG is converted into a PDF or PostScript file, the
font that has been used
inside Batik has to be mapped to a font used by the actual output
format. Features like
font substitution in FOP may need to be taken into account but can
also be an advantage
when working around font mapping issues. Like for XSL-FO content,
you'll get a warning
if a particular font could not be found and had to be substituted,
or if a particular
glyph is missing in a font.
Anyway, Batik would need to be changed to allow plugging in an external font
source like FOP's font configuration. There's no easy solution to this. It
would mean working with the Batik developers and quite a bit of work. Don't
expect anyone to do that for you in the near future. I don't see a work-around
other than installing the necessary font in your operating system to make them
available to Batik.
I know there is a code section in Batik that can load a TrueType font from an
external file (not installed in the operating system), so it might be possible
to specify the location of a font somehow. But I don't know how that works and
if it's really possible. You will have to ask on batik-users.
I guess we can keep this issue around as a reminder. But given the amount of
work expected compared to the expected gain it is realistic to assume this
won't be implemented soon.
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.