The method
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamily
Names() seems relatively slow.  Does Java rely on the native OS to
supply this information, or does Java iterate over the font files and
open each to extract the family and font name (which are different than
the filename).

If Java is in control of obtaining this information itself by opening
font files, one way to speed it up is to cache in a simple text file
the file names, the file mod times and the extracted font and family
names.  Once this information is computed, only new and changed font
files would need to be opened and parsed.

Tom

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to