Hi,

That's one way to do it, but if you want to see which fonts are
available to your JVM then you can use the following command:

import java.awt.GraphicsEnvironment;
...
// For font family names
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()
// For font details, from here you can get more information about the fonts
GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts()

Hope that helps

Mehdi

On 5 September 2011 22:04, J.Pietschmann <j3322...@yahoo.de> wrote:
> Am 05.09.2011 13:09, schrieb Theresa Jayne Forster:
>> How do you determine the font-family name for a font loaded by autodetect?
> ...
>> File names are not always the same
>
> Most Font file viewers (or file managers) can display the real
> font name. On Windows (Vista or later), go to the directory
> containing the fonts (usually C:\Windows\Fonts or such), and you'll
> see the real font names. Right click and select "properties" from
> the context menu, and you'll get the file name and other info. Double
> click, and the windows font viewer opens, again displaying the font
> name. There's similar functionality on Unix/Linux and Mac. If all
> else fails, grab a font editor for your plattform, open the font,
> and view the font properties, or meta data.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to