You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/12/10 14:48:46 UTC

DO NOT REPLY [Bug 46374] Fonts not found for SVG texts (when not in C:\WINNT\Fonts)

https://issues.apache.org/bugzilla/show_bug.cgi?id=46374


Thomas Deweese <de...@apache.org> changed:

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




--- Comment #1 from Thomas Deweese <de...@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