public abstract class

PlatformFont

extends Object
implements FontPeer
java.lang.Object
   ↳ sun.awt.PlatformFont

Summary

Fields
protected static int FONTCACHEMASK
protected static int FONTCACHESIZE
protected FontDescriptor[] componentFonts
protected char defaultChar
protected FontDescriptor defaultFont
protected String familyName
protected FontConfiguration fontConfig
protected static String osVersion
Public Constructors
PlatformFont(String name, int style)
Public Methods
Object[] makeConvertedMultiFontChars(char[] data, int start, int len)
Object[] makeConvertedMultiFontString(String str)
Specialized fast path string conversion for AWT.
CharsetString[] makeMultiCharsetString(String str, boolean allowdefault)
make a array of CharsetString with given String.
CharsetString[] makeMultiCharsetString(String str)
make a array of CharsetString with given String.
CharsetString[] makeMultiCharsetString(char[] str, int offset, int len, boolean allowDefault)
make a array of CharsetString with given char array.
CharsetString[] makeMultiCharsetString(char[] str, int offset, int len)
make a array of CharsetString with given char array.
boolean mightHaveMultiFontMetrics()
Is it possible that this font's metrics require the multi-font calls? This might be true, for example, if the font supports kerning.
Protected Methods
final Object[] getFontCache()
abstract char getMissingGlyphCharacter()
Returns the character that should be rendered when a glyph is missing.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static int FONTCACHEMASK

protected static int FONTCACHESIZE

protected FontDescriptor[] componentFonts

protected char defaultChar

protected FontDescriptor defaultFont

protected String familyName

protected FontConfiguration fontConfig

protected static String osVersion

Public Constructors

public PlatformFont (String name, int style)

Public Methods

public Object[] makeConvertedMultiFontChars (char[] data, int start, int len)

public Object[] makeConvertedMultiFontString (String str)

Specialized fast path string conversion for AWT.

public CharsetString[] makeMultiCharsetString (String str, boolean allowdefault)

make a array of CharsetString with given String.

public CharsetString[] makeMultiCharsetString (String str)

make a array of CharsetString with given String.

public CharsetString[] makeMultiCharsetString (char[] str, int offset, int len, boolean allowDefault)

make a array of CharsetString with given char array.

Parameters
str The char array to convert.
offset offset of first character of interest
len number of characters to convert
allowDefault whether to allow the default char. Setting this to true overloads the meaning of this method to return non-null only if all chars can be converted.
Returns
  • array of CharsetString or if allowDefault is false and any of the returned chars would have been converted to a default char, then return null. This is used to choose alternative means of displaying the text.

public CharsetString[] makeMultiCharsetString (char[] str, int offset, int len)

make a array of CharsetString with given char array.

Parameters
str The char array to convert.
offset offset of first character of interest
len number of characters to convert

public boolean mightHaveMultiFontMetrics ()

Is it possible that this font's metrics require the multi-font calls? This might be true, for example, if the font supports kerning.

Protected Methods

protected final Object[] getFontCache ()

protected abstract char getMissingGlyphCharacter ()

Returns the character that should be rendered when a glyph is missing.