https://issues.apache.org/bugzilla/show_bug.cgi?id=46374
Thomas Deweese <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Thomas Deweese <[EMAIL PROTECTED]> 2008-12-10 05:48:44 PST
---
It is true that currently Batik does not have a way for someone to
provide arbitrary fonts to Batik. However we do support CSS @font-face
to reference arbitrary TrueType fonts via URL. See the following SVG
file for examples of how to accomplish this:
http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/samples/tests/spec/fonts/fontFace.svg?view=markup
A lso if you successfuly added the font to the AWT font list then Batik
should see and use it. The Code Batik uses to know about 'system fonts'
(where system here means the JVM) is:
GraphicsEnvironment env;
env = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontNames = env.getAvailableFontFamilyNames();
If the fontNames array includes your font then Batik _will_
use it. It's possible the name of the font Java see's isn't
what you think it is which could cause problems as well.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]