public static Font font (String family, double size)

Searches for an appropriate font based on the font family name and size. This method is not guaranteed to return a specific font, but does its best to find one that fits the specified requirements. A null or empty value for family allows the implementation to select any suitable font.

Parameters:
family    The family of the font
size    The point size of the font. This can be a fractional value, but must not be negative. If the size is < 0 the default size will be used.

Returns:  The font that best fits the specified requirements.