APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public final Class MFontConfiguration

extends FontConfiguration
Class Inheritance
Imports
sun.awt.FontConfiguration, .X11FontManager, sun.util.logging.PlatformLogger, java.io.File, .FileInputStream, java.nio.charset.Charset, java.util.HashMap, .HashSet, .Properties, .Scanner

Field Summary

Modifier and TypeField and Description
private static HashMap<String, String>
private static FontConfiguration
private static final String
private static PlatformLogger
Inherited from sun.awt.FontConfiguration:
encodingfontManagerfontNamesinstalledFallbackFontFilesisPropertieslocaleMapNUM_FONTSNUM_STYLESosNameosVersionpreferLocaleFontspreferPropFontspublicFontNamesreorderMapstartupLocalestyleNamestable_awtfontpathsverbose

Constructor Summary

AccessConstructor and Description
public
public
MFontConfiguration(SunFontManager fm, boolean preferLocaleFonts, boolean preferPropFonts)

Method Summary

Modifier and TypeMethod and Description
private String
public HashSet<String>
protected Charset
protected String
getEncoding(String awtFontName, String characterSubsetName)

Implements abstract sun.awt.FontConfiguration.getEncoding.

Returns the java.io name of the platform character encoding for the given AWT font name and character subset.

protected String
public String
getFallbackFamilyName(String fontName, String defaultFallback)

Implements abstract sun.awt.FontConfiguration.getFallbackFamilyName.

Returns a fallback name for the given font name.

protected String
private String
getVersionString(File f)

Gets the OS version string from a Linux release-specific file.

protected void
private void
protected String
mapFileName(String fileName)

Overrides sun.awt.FontConfiguration.mapFileName.

Maps a file name given in the font configuration file to a format appropriate for the platform.

protected void
setOsNameAndVersion()

Overrides sun.awt.FontConfiguration.setOsNameAndVersion.

Sets the OS name and version from environment information.

Inherited from sun.awt.FontConfiguration:
buildFontDescriptorsfontFilesArePresentfoundOsSpecificFileget2DCompositeFontInfogetCompatibilityFamilyNamegetComponentFontIDgetComponentFontIDMotifgetComponentFontNamegetCoreScriptsgetExtraFontPathgetFileNameFromPlatformNamegetFontConfigurationgetFontDescriptorsgetFontIndexgetFontNamegetInstalledFallbackFontsgetLogicalFontFaceNamegetNumberCoreFontsgetPlatformFontNamesgetStringgetStyleIndexgetStyleIndexgetStyleNamegetStyleStringgetVersionhasMonoToPropMapinitisLogicalFontFaceNameisLogicalFontFaceNameLCisLogicalFontFamilyNameisLogicalFontFamilyNameLCloadBinaryloadPropertiesmakeAWTFontNameneedToSearchForFilesaveBinarysetFontConfigurationwillReorderForStartupLocale

Field Detail

encodingMapback to summary
private static HashMap<String, String> encodingMap
fontConfigback to summary
private static FontConfiguration fontConfig

Hides sun.awt.FontConfiguration.fontConfig.

fontsDirPrefixback to summary
private static final String fontsDirPrefix
loggerback to summary
private static PlatformLogger logger

Hides sun.awt.FontConfiguration.logger.

Constructor Detail

MFontConfigurationback to summary
public MFontConfiguration(SunFontManager fm)
MFontConfigurationback to summary
public MFontConfiguration(SunFontManager fm, boolean preferLocaleFonts, boolean preferPropFonts)

Method Detail

extractInfoback to summary
private String extractInfo(String s)
getAWTFontPathSetback to summary
public HashSet<String> getAWTFontPathSet()

Overrides sun.awt.FontConfiguration.getAWTFontPathSet.

Annotations
@Override
getDefaultFontCharsetback to summary
protected Charset getDefaultFontCharset(String fontName)

Implements abstract sun.awt.FontConfiguration.getDefaultFontCharset.

Annotations
@Override
getEncodingback to summary
protected String getEncoding(String awtFontName, String characterSubsetName)

Implements abstract sun.awt.FontConfiguration.getEncoding.

Doc from sun.awt.FontConfiguration.getEncoding.

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.

Annotations
@Override
getFaceNameFromComponentFontNameback to summary
protected String getFaceNameFromComponentFontName(String componentFontName)

Implements abstract sun.awt.FontConfiguration.getFaceNameFromComponentFontName.

Annotations
@Override
getFallbackFamilyNameback to summary
public String getFallbackFamilyName(String fontName, String defaultFallback)

Implements abstract sun.awt.FontConfiguration.getFallbackFamilyName.

Doc from sun.awt.FontConfiguration.getFallbackFamilyName.

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.

Annotations
@Override
getFileNameFromComponentFontNameback to summary
protected String getFileNameFromComponentFontName(String componentFontName)

Implements abstract sun.awt.FontConfiguration.getFileNameFromComponentFontName.

Annotations
@Override
getVersionStringback to summary
private String getVersionString(File f)

Gets the OS version string from a Linux release-specific file.

initReorderMapback to summary
protected void initReorderMap()

Implements abstract sun.awt.FontConfiguration.initReorderMap.

Annotations
@Override
initTablesback to summary
private void initTables()
mapFileNameback to summary
protected String mapFileName(String fileName)

Overrides sun.awt.FontConfiguration.mapFileName.

Doc from sun.awt.FontConfiguration.mapFileName.

Maps a file name given in the font configuration file to a format appropriate for the platform.

Annotations
@Override
setOsNameAndVersionback to summary
protected void setOsNameAndVersion()

Overrides sun.awt.FontConfiguration.setOsNameAndVersion.

Sets the OS name and version from environment information.

Annotations
@Override