APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public abstract Class FontScaler

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
sun.java2d.DisposerRecord
Known Direct Subclasses
sun.font.FreetypeFontScaler, sun.font.NullFontScaler
Imports
java.awt.geom.GeneralPath, .Point2D, .Rectangle2D, java.lang.ref.WeakReference, sun.java2d.Disposer, .DisposerRecord

Field Summary

Modifier and TypeField and Description
protected boolean
protected WeakReference<Font2D>
protected long
private static FontScaler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract long
createScalerContext(double[] matrix, int aa, int fm, float boldness, float italic)

public void
public void
disposeScaler()

Used when the native resources held by the scaler need to be released before the 2D disposer runs.

pack-priv abstract StrikeMetrics
getFontMetrics(long pScalerContext)

pack-priv abstract float
getGlyphAdvance(long pScalerContext, int glyphCode)

pack-priv abstract int
getGlyphCode(char charCode)

pack-priv abstract long
getGlyphImage(long pScalerContext, int glyphCode)

pack-priv abstract void
getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics)

pack-priv abstract GeneralPath
getGlyphOutline(long pScalerContext, int glyphCode, float x, float y)

pack-priv abstract Rectangle2D.Float
getGlyphOutlineBounds(long pContext, int glyphCode)

pack-priv abstract Point2D.Float
getGlyphPoint(long pScalerContext, int glyphCode, int ptNumber)

pack-priv abstract GeneralPath
getGlyphVectorOutline(long pScalerContext, int[] glyphs, int numGlyphs, float x, float y)

pack-priv abstract int
public static synchronized FontScaler
pack-priv abstract int
public static FontScaler
getScaler(Font2D font, int indexInCollection, boolean supportsCJK, int filesize)

pack-priv abstract long
pack-priv abstract void
invalidateScalerContext(long ppScalerContext)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

disposedback to summary
protected boolean disposed
fontback to summary
protected WeakReference<Font2D> font
nativeScalerback to summary
protected long nativeScaler
nullScalerback to summary
private static FontScaler nullScaler

Constructor Detail

FontScalerback to summary
public FontScaler()

Method Detail

createScalerContextback to summary
pack-priv abstract long createScalerContext(double[] matrix, int aa, int fm, float boldness, float italic)
disposeback to summary
public void dispose()

Implements sun.java2d.DisposerRecord.dispose.

disposeScalerback to summary
public void disposeScaler()

Used when the native resources held by the scaler need to be released before the 2D disposer runs.

getFontMetricsback to summary
pack-priv abstract StrikeMetrics getFontMetrics(long pScalerContext) throws FontScalerException
getGlyphAdvanceback to summary
pack-priv abstract float getGlyphAdvance(long pScalerContext, int glyphCode) throws FontScalerException
getGlyphCodeback to summary
pack-priv abstract int getGlyphCode(char charCode) throws FontScalerException
getGlyphImageback to summary
pack-priv abstract long getGlyphImage(long pScalerContext, int glyphCode) throws FontScalerException
getGlyphMetricsback to summary
pack-priv abstract void getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) throws FontScalerException
getGlyphOutlineback to summary
pack-priv abstract GeneralPath getGlyphOutline(long pScalerContext, int glyphCode, float x, float y) throws FontScalerException
getGlyphOutlineBoundsback to summary
pack-priv abstract Rectangle2D.Float getGlyphOutlineBounds(long pContext, int glyphCode) throws FontScalerException
getGlyphPointback to summary
pack-priv abstract Point2D.Float getGlyphPoint(long pScalerContext, int glyphCode, int ptNumber) throws FontScalerException
getGlyphVectorOutlineback to summary
pack-priv abstract GeneralPath getGlyphVectorOutline(long pScalerContext, int[] glyphs, int numGlyphs, float x, float y) throws FontScalerException
getMissingGlyphCodeback to summary
pack-priv abstract int getMissingGlyphCode() throws FontScalerException
getNullScalerback to summary
public static synchronized FontScaler getNullScaler()
getNumGlyphsback to summary
pack-priv abstract int getNumGlyphs() throws FontScalerException
getScalerback to summary
public static FontScaler getScaler(Font2D font, int indexInCollection, boolean supportsCJK, int filesize)
getUnitsPerEmback to summary
pack-priv abstract long getUnitsPerEm()
invalidateScalerContextback to summary
pack-priv abstract void invalidateScalerContext(long ppScalerContext)