List Info

Thread: Determining available fonts?




Determining available fonts?
country flaguser name
United States
2007-08-07 12:25:29
For my application, I poll the local system for a list of
fonts:
 
String[] fontNames =
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailab
leFontFamilyNames();
 
Most work in Batik.  Some, however, (like Wingdings) do not.
 Is there a way to determine which fonts are available for
Batik to render?  I know this is dependent on the system, so
I'm looking for a runtime solution that can evaluate whether
or not a system font is usable by Batik.
 
Michael Bishop

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org


Re: Determining available fonts?
country flaguser name
United States
2007-08-11 13:35:51
Hi Michael,

"Bishop, Michael W. CONTR J9C880"
<Michael.Bishopje.jfcom.mil> wrote on 
08/07/2007 01:25:29 PM:

> For my application, I poll the local system for a list
of fonts:
> 
> String[] fontNames = GraphicsEnvironment.
>
getLocalGraphicsEnvironment().getAvailableFontFamilyNames();

> 
> Most work in Batik.  Some, however, (like Wingdings) do
not.

   Right, for some reason Wingdings claims that it can't
render
any characters so we don't use it to render any characters


> Is there a way to determine which fonts are available
for Batik to 
> render?

   Not that I know of.  In fact I would love to know how I
could
identify fonts like Wingdings so that we could choose to
bypass the
'renderable' check and just use the font.

> I know this is dependent on the system, so I'm looking
for 
> a runtime solution that can evaluate whether or not a
system font is
> usable by Batik.


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )