xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46374] Fonts not found for SVG texts (when not in C:\WINNT\Fonts)
Date Wed, 10 Dec 2008 13:48:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46374


Thomas Deweese <deweese@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Thomas Deweese <deweese@apache.org>  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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message