APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public final Class CompositeFont

extends Font2D
Class Inheritance
Imports
java.awt.Font

Field Summary

Modifier and TypeField and Description
pack-priv String[]
pack-priv String[]
private PhysicalFont[]
private boolean[]
pack-priv int[]
pack-priv boolean
pack-priv int
pack-priv int[]
pack-priv int
pack-priv int
pack-priv int
Inherited from sun.font.Font2D:
DEFAULT_RANKfamilyfamilyNameFONT_CONFIG_RANKfontRankfullNameFWEIGHT_BOLDFWEIGHT_NORMALFWIDTH_NORMALhandleJRE_RANKlastFontStrikemapperNATIVE_RANKstrikeCachestyleTTF_RANKTYPE1_RANKUNKNOWN_RANK

Constructor Summary

AccessConstructor and Description
public
CompositeFont(String name, String[] compFileNames, String[] compNames, int metricsSlotCnt, int[] exclRanges, int[] maxIndexes, boolean defer, SunFontManager fm)

pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
pack-priv FontStrike
private void
public CharToGlyphMapper
getMapper()

Implements abstract sun.font.Font2D.getMapper.

public int
public int
public int
public PhysicalFont
getSlotFont(int slot)

public void
getStyleMetrics(float pointSize, float[] metrics, int offset)

Overrides sun.font.Font2D.getStyleMetrics.

The length of the metrics array must be >= offset+4, and offset must be >= 0.

protected int
public boolean
public boolean
isExcludedChar(int slot, int charcode)

public boolean
pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public boolean
Inherited from sun.font.Font2D:
canDisplaycanDoStylecharToGlyphcharToGlyphRawcharToVariationGlyphcharToVariationGlyphRawgetBaselineForgetFamilyNamegetFontMetricsgetFontMetricsgetFontNamegetItalicAnglegetPlatformNativeFontPtrgetPostscriptNamegetRankgetStrikegetStrikegetStrikegetStrikegetStrikegetStylegetTableBytesgetUnitsPerEmgetWeightgetWidthsetRanksetStylesetUseWeakRefssupportsEncodingupdateLastStrikeRef

Field Detail

componentFileNamesback to summary
pack-priv String[] componentFileNames
componentNamesback to summary
pack-priv String[] componentNames
componentsback to summary
private PhysicalFont[] components
deferredInitialisationback to summary
private boolean[] deferredInitialisation
exclusionRangesback to summary
pack-priv int[] exclusionRanges
isStdCompositeback to summary
pack-priv boolean isStdComposite
localeSlotback to summary
pack-priv int localeSlot
maxIndicesback to summary
pack-priv int[] maxIndices
numGlyphsback to summary
pack-priv int numGlyphs
numMetricsSlotsback to summary
pack-priv int numMetricsSlots
numSlotsback to summary
pack-priv int numSlots

Constructor Detail

CompositeFontback to summary
public CompositeFont(String name, String[] compFileNames, String[] compNames, int metricsSlotCnt, int[] exclRanges, int[] maxIndexes, boolean defer, SunFontManager fm)
CompositeFontback to summary
pack-priv CompositeFont(PhysicalFont[] slotFonts)
CompositeFontback to summary
pack-priv CompositeFont(PhysicalFont physFont, CompositeFont compFont)

Method Detail

canDisplayback to summary
public boolean canDisplay(char c)

Overrides sun.font.Font2D.canDisplay.

createStrikeback to summary
pack-priv FontStrike createStrike(FontStrikeDesc desc)

Implements abstract sun.font.Font2D.createStrike.

doDeferredInitialisationback to summary
private void doDeferredInitialisation(int slot)
getMapperback to summary
public CharToGlyphMapper getMapper()

Implements abstract sun.font.Font2D.getMapper.

getMissingGlyphCodeback to summary
public int getMissingGlyphCode()

Overrides sun.font.Font2D.getMissingGlyphCode.

getNumGlyphsback to summary
public int getNumGlyphs()

Overrides sun.font.Font2D.getNumGlyphs.

getNumSlotsback to summary
public int getNumSlots()
getSlotFontback to summary
public PhysicalFont getSlotFont(int slot)
getStyleMetricsback to summary
public void getStyleMetrics(float pointSize, float[] metrics, int offset)

Overrides sun.font.Font2D.getStyleMetrics.

Doc from sun.font.Font2D.getStyleMetrics.

The length of the metrics array must be >= offset+4, and offset must be >= 0. Typically offset is 4. This method will store the following elements in that array before returning: metrics[off+0]: strikethrough offset metrics[off+1]: strikethrough thickness metrics[off+2]: underline offset metrics[off+3]: underline thickness Note that this implementation simply returns default values; subclasses can override this method to provide more accurate values.

getValidatedGlyphCodeback to summary
protected int getValidatedGlyphCode(int glyphCode)

Overrides sun.font.Font2D.getValidatedGlyphCode.

hasSupplementaryCharsback to summary
public boolean hasSupplementaryChars()

Overrides sun.font.Font2D.hasSupplementaryChars.

isExcludedCharback to summary
public boolean isExcludedChar(int slot, int charcode)
isStdCompositeback to summary
public boolean isStdComposite()
replaceComponentFontback to summary
pack-priv void replaceComponentFont(PhysicalFont oldFont, PhysicalFont newFont)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

useAAForPtSizeback to summary
public boolean useAAForPtSize(int ptsize)

Overrides sun.font.Font2D.useAAForPtSize.