APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt

public abstract Class PlatformFont

extends Object
implements FontPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.FontPeer
Known Direct Subclasses
sun.awt.X11.XFontPeer
Imports
java.awt.peer.FontPeer, java.util.ArrayList, .Locale, sun.font.SunFontManager, sun.java2d.FontSupport, java.nio.CharBuffer, .ByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
protected FontDescriptor[]
protected char
protected FontDescriptor
protected String
private Object[]
protected static int
protected static int
protected FontConfiguration
protected static String

Constructor Summary

AccessConstructor and Description
public
PlatformFont(String name, int style)

Method Summary

Modifier and TypeMethod and Description
protected final Object[]
protected abstract char
getMissingGlyphCharacter()

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

private static native void
initIDs()

Initialize JNI field and method IDs

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)

make a array of CharsetString with given String.

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

make a array of CharsetString with given String.

public CharsetString[]
makeMultiCharsetString(char[]
The char array to convert.
str
,
int
offset of first character of interest
offset
,
int
number of characters to convert
len
)

make a array of CharsetString with given char array.

public CharsetString[]

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.
makeMultiCharsetString
(char[]
The char array to convert.
str
,
int
offset of first character of interest
offset
,
int
number of characters to convert
len
,
boolean
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.
allowDefault
)

make a array of CharsetString with given char array.

public boolean
mightHaveMultiFontMetrics()

Is it possible that this font's metrics require the multi-font calls?

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

componentFontsback to summary
protected FontDescriptor[] componentFonts
defaultCharback to summary
protected char defaultChar
defaultFontback to summary
protected FontDescriptor defaultFont
familyNameback to summary
protected String familyName
fontCacheback to summary
private Object[] fontCache
FONTCACHEMASKback to summary
protected static int FONTCACHEMASK
FONTCACHESIZEback to summary
protected static int FONTCACHESIZE
fontConfigback to summary
protected FontConfiguration fontConfig
osVersionback to summary
protected static String osVersion

Constructor Detail

PlatformFontback to summary
public PlatformFont(String name, int style)

Method Detail

getFontCacheback to summary
protected final Object[] getFontCache()
getMissingGlyphCharacterback to summary
protected abstract char getMissingGlyphCharacter()

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

initIDsback to summary
private static native void initIDs()

Initialize JNI field and method IDs

makeConvertedMultiFontCharsback to summary
public Object[] makeConvertedMultiFontChars(char[] data, int start, int len)
makeConvertedMultiFontStringback to summary
public Object[] makeConvertedMultiFontString(String str)

Specialized fast path string conversion for AWT.

makeMultiCharsetStringback to summary
public CharsetString[] makeMultiCharsetString(String str)

make a array of CharsetString with given String.

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

make a array of CharsetString with given String.

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

make a array of CharsetString with given char array.

Parameters
str:char[]

The char array to convert.

offset:int

offset of first character of interest

len:int

number of characters to convert

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

make a array of CharsetString with given char array.

Parameters
str:char[]

The char array to convert.

offset:int

offset of first character of interest

len:int

number of characters to convert

allowDefault:boolean

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:CharsetString[]

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.

mightHaveMultiFontMetricsback to summary
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.

sun.awt back to summary

pack-priv Class PlatformFont.PlatformFontCache

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv ByteBuffer
pack-priv FontDescriptor
pack-priv char

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bbback to summary
pack-priv ByteBuffer bb
fontDescriptorback to summary
pack-priv FontDescriptor fontDescriptor
uniCharback to summary
pack-priv char uniChar

Constructor Detail

PlatformFontCacheback to summary
pack-priv PlatformFontCache()