java.lang.Object | |
↳ | sun.awt.FontConfiguration |
Provides the definitions of the five logical fonts: Serif, SansSerif, Monospaced, Dialog, and DialogInput. The necessary information is obtained from fontconfig files.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NUM_FONTS | ||||||||||
int | NUM_STYLES |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
encoding | |||||||||||
environment | |||||||||||
isProperties | |||||||||||
localeMap | |||||||||||
osName | |||||||||||
osVersion | |||||||||||
preferLocaleFonts | |||||||||||
preferPropFonts | |||||||||||
reorderMap | |||||||||||
startupLocale | |||||||||||
table_awtfontpaths | |||||||||||
verbose |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an array of composite font descriptors for all logical font
faces.
| |||||||||||
Returns a configuration specific path to be appended to the font
search path.
| |||||||||||
Returns a fallback name for the given font name.
| |||||||||||
Returns a file name for the physical font represented by this platform font name,
if the font configuration has such information available, or null if the
information is unavailable.
| |||||||||||
Returns FontDescriptors describing the physical fonts used for the
given logical font name and style.
| |||||||||||
Returns the font face name for the given logical font
family name and style.
| |||||||||||
Returns the string typically used in properties files
for the given style.
| |||||||||||
Checks whether the given font face name is a valid logical font name.
| |||||||||||
Checks whether the given font face name is a valid logical font name.
| |||||||||||
Checks whether the given font family name is a valid logical font name.
| |||||||||||
Checks whether the given font family name is a valid logical font name.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the 1.1 equivalent for some old 1.0 font family names for
which we need to maintain compatibility in some configurations.
| |||||||||||
Returns the java.io name of the platform character encoding for the
given AWT font name and character subset.
| |||||||||||
Returns the AWT font name for the given platform font name and
character subset.
| |||||||||||
Maps a file name given in the font configuration file
to a format appropriate for the platform.
| |||||||||||
Fills in this instance's osVersion and osName members.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns an array of composite font descriptors for all logical font faces. If the font configuration file doesn't specify Lucida Sans Regular or the given fallback font as component fonts, they are added here.
Returns a configuration specific path to be appended to the font search path.
Returns a fallback name for the given font name. For a few known font names, matching logical font names are returned. For all other font names, defaultFallback is returned. defaultFallback differs between AWT and 2D.
Returns a file name for the physical font represented by this platform font name, if the font configuration has such information available, or null if the information is unavailable. The file name returned is just a hint; a null return value doesn't necessarily mean that the font is unavailable, nor does a non-null return value guarantee that the file exists and contains the physical font. The file name can be an absolute or a relative path name.
Returns FontDescriptors describing the physical fonts used for the given logical font name and style. The font name is interpreted in a case insensitive way. The style argument is interpreted as in java.awt.Font.Font.
Returns the font face name for the given logical font family name and style. The style argument is interpreted as in java.awt.Font.Font.
Returns the string typically used in properties files for the given style. The style argument is interpreted as in java.awt.Font.Font.
Checks whether the given font face name is a valid logical font name. The check is case insensitive.
Checks whether the given font face name is a valid logical font name. The check is case sensitive.
Checks whether the given font family name is a valid logical font name. The check is case insensitive.
Checks whether the given font family name is a valid logical font name. The check is case sensitive.
Returns the 1.1 equivalent for some old 1.0 font family names for which we need to maintain compatibility in some configurations. Returns null for other font names.
Returns the java.io name of the platform character encoding for the given AWT font name and character subset. May return "default" to indicate that getDefaultFontCharset should be called to obtain a charset encoder.
Returns the AWT font name for the given platform font name and character subset.
Maps a file name given in the font configuration file to a format appropriate for the platform.
Fills in this instance's osVersion and osName members. By default uses the system properties os.name and os.version; subclasses may override.