Hi Michael,
"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on
11/13/2006 08:32:18 PM:
> This may be more of a general SVG question, but what fonts does
Batik/SVG
> support?
Any TrueType font (sort of...).
> I couldn't find a list in the SVG specification.
All SVG implementations are required to support is SVG Fonts.
> When I provide a user a list of fonts, I use the Java API to poll the
system
> for available fonts and list those. Nonsensical fonts like Webdings and
> Wingdings appear. When these fonts are rendered in a JTextArea, they
look
> like empty blank squares. When they're rendered to SVG, they look
"normal",
> i.e., a default font, definitely not WebDings or Wingdings.
This is the 'sort of' part above. We use the Java API's to query if a
font
supports a particular unicode code point. For what ever reason (well I
can
kind of understand) WebDings and WingDings don't claim to support any code
points. As a result Batik goes looking for a font that does claim to
support
the requested code point, resulting in the text being rendered with a
'default
font'.
> I notice that some fonts are rendered into a "standard" name (see
SansSerif)
> and some are put in apostrophes (see others). I guess I want to know
how
> Batik maps fonts and maybe a find a way to get a list of fonts that
Batik/SVG
> will render? I'm not interested in supplying and rendering external
fonts, I
> just want a subset of system available plus Batik/SVG usable fonts.
I'm not sure how to answer this since it depends on the fonts
available
on the system. If you want a way to cull fonts Batik won't use you might
try asking if the font supports the space char. Any normal text font
would
but I don't think WebDings/WingDings will.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]