public final class NativeFonts extends Object
ControlType
s.
Fallback fonts could be used as a workaround for some systems if native fonts cannot be retrieved.Constructor and Description |
---|
NativeFonts() |
Modifier and Type | Method and Description |
---|---|
static FontUIResource |
get(ControlType control)
Returns native
FontUIResource for the specified ControlType . |
static boolean |
isUseNativeFonts()
Returns whether or not native OS fonts should be used when possible.
|
static void |
setUseNativeFonts(boolean useNativeFonts)
Sets whether or not native OS fonts should be used when possible.
|
static void |
setWarningsEnabled(boolean enabled)
Sets whether or not various
Font loading related warnings should be displayed. |
public static void setWarningsEnabled(boolean enabled)
Font
loading related warnings should be displayed.enabled
- whether or not various Font
loading related warnings should be displayedpublic static boolean isUseNativeFonts()
true
if native OS fonts should be used when possible, false
otherwisepublic static void setUseNativeFonts(boolean useNativeFonts)
useNativeFonts
- whether or not native OS fonts should be used when possible@NotNull public static FontUIResource get(@NotNull ControlType control)
FontUIResource
for the specified ControlType
.control
- ControlType
FontUIResource
for the specified ControlType
Copyright © 2020. All rights reserved.