public abstract class FontUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Font> |
getAvailableTextFonts(Locale locale)
Gets the list of available text fonts.
|
static Font |
getDefaultFont()
Gets the current default font.
|
static boolean |
isDefaultFontSupportedByLookAndFeel(String lookAndFeelName)
Tests whether a look and feel supports a default font
|
static void |
setDefaultFont(Font font)
Sets the default font.
|
public static List<Font> getAvailableTextFonts(Locale locale)
locale
- a locale used to display text.public static boolean isDefaultFontSupportedByLookAndFeel(String lookAndFeelName)
lookAndFeelName
- The look and feel name.public static Font getDefaultFont()
public static void setDefaultFont(Font font)
font
- The new default fontisDefaultFontSupportedByLookAndFeel(String)
Copyright © 2022. All rights reserved.