Selecting an alternate font

From: Roedy Green (
Date: 05/19/04

Date: Wed, 19 May 2004 16:36:19 GMT

In HTML you can provide a list of fonts, and it picks the best it can
from the list given what is available.

If you try this is Java, you don't get null returned from getFont, you
get a replacement without any indication it has happened. What is the
best way to choose a font from a list of possible, in order by

The methods for determining what you got seem to be muddled with
locale specificity. They also are ambiguously documented about what
sort of string you get back.

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See for The Java Glossary.