APIdia Launch Partner
Top Fields Constructors Methods
sun.font

pack-priv Class FreetypeFontScaler

extends FontScaler
Class Inheritance
Imports
java.awt.geom.GeneralPath, .Point2D, .Rectangle2D, java.lang.ref.WeakReference

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
Inherited from sun.font.FontScaler:
disposedfontnativeScaler

Constructor Summary

AccessConstructor and Description
public
FreetypeFontScaler(Font2D font, int indexInCollection, boolean supportsCJK, int filesize)

Method Summary

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

Implements abstract sun.font.FontScaler.createScalerContext.

private native long
createScalerContextNative(long pScaler, double[] matrix, int aa, int fm, float boldness, float italic)

public synchronized void
private native void
disposeNativeScaler(Font2D font2D, long pScaler)

public synchronized void
disposeScaler()

Overrides sun.font.FontScaler.disposeScaler.

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

pack-priv synchronized StrikeMetrics
getFontMetrics(long pScalerContext)

Implements abstract sun.font.FontScaler.getFontMetrics.

private native StrikeMetrics
getFontMetricsNative(Font2D font, long pScalerContext, long pScaler)

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

Implements abstract sun.font.FontScaler.getGlyphAdvance.

private native float
getGlyphAdvanceNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)

pack-priv synchronized int
getGlyphCode(char charCode)

Implements abstract sun.font.FontScaler.getGlyphCode.

private native int
getGlyphCodeNative(Font2D font, long pScaler, char charCode)

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

Implements abstract sun.font.FontScaler.getGlyphImage.

private native long
getGlyphImageNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)

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

Implements abstract sun.font.FontScaler.getGlyphMetrics.

private native void
getGlyphMetricsNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, Point2D.Float metrics)

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

Implements abstract sun.font.FontScaler.getGlyphOutline.

pack-priv synchronized Rectangle2D.Float
getGlyphOutlineBounds(long pScalerContext, int glyphCode)

Implements abstract sun.font.FontScaler.getGlyphOutlineBounds.

private native Rectangle2D.Float
getGlyphOutlineBoundsNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)

private native GeneralPath
getGlyphOutlineNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, float x, float y)

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

Implements abstract sun.font.FontScaler.getGlyphPoint.

private native Point2D.Float
getGlyphPointNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, int ptNumber)

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

Implements abstract sun.font.FontScaler.getGlyphVectorOutline.

private native GeneralPath
getGlyphVectorOutlineNative(Font2D font, long pScalerContext, long pScaler, int[] glyphs, int numGlyphs, float x, float y)

pack-priv synchronized int
private native int
pack-priv synchronized int
private native int
getNumGlyphsNative(long pScaler)

pack-priv synchronized long
private native long
getUnitsPerEMNative(long pScaler)

private static native void
initIDs(Class<?> FFS)

private native long
initNativeScaler(Font2D font, int type, int indexInCollection, boolean supportsCJK, int filesize)

private void
pack-priv void
Inherited from sun.font.FontScaler:
getNullScalergetScaler

Field Detail

TRUETYPE_FONTback to summary
private static final int TRUETYPE_FONT
TYPE1_FONTback to summary
private static final int TYPE1_FONT

Constructor Detail

FreetypeFontScalerback to summary
public FreetypeFontScaler(Font2D font, int indexInCollection, boolean supportsCJK, int filesize)

Method Detail

createScalerContextback to summary
pack-priv synchronized long createScalerContext(double[] matrix, int aa, int fm, float boldness, float italic)

Implements abstract sun.font.FontScaler.createScalerContext.

createScalerContextNativeback to summary
private native long createScalerContextNative(long pScaler, double[] matrix, int aa, int fm, float boldness, float italic)
disposeback to summary
public synchronized void dispose()

Overrides sun.font.FontScaler.dispose.

Implements sun.java2d.DisposerRecord.dispose.

disposeNativeScalerback to summary
private native void disposeNativeScaler(Font2D font2D, long pScaler)
disposeScalerback to summary
public synchronized void disposeScaler()

Overrides sun.font.FontScaler.disposeScaler.

Doc from sun.font.FontScaler.disposeScaler.

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

getFontMetricsback to summary
pack-priv synchronized StrikeMetrics getFontMetrics(long pScalerContext) throws FontScalerException

Implements abstract sun.font.FontScaler.getFontMetrics.

getFontMetricsNativeback to summary
private native StrikeMetrics getFontMetricsNative(Font2D font, long pScalerContext, long pScaler)
getGlyphAdvanceback to summary
pack-priv synchronized float getGlyphAdvance(long pScalerContext, int glyphCode) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphAdvance.

getGlyphAdvanceNativeback to summary
private native float getGlyphAdvanceNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)
getGlyphCodeback to summary
pack-priv synchronized int getGlyphCode(char charCode) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphCode.

getGlyphCodeNativeback to summary
private native int getGlyphCodeNative(Font2D font, long pScaler, char charCode)
getGlyphImageback to summary
pack-priv synchronized long getGlyphImage(long pScalerContext, int glyphCode) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphImage.

getGlyphImageNativeback to summary
private native long getGlyphImageNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)
getGlyphMetricsback to summary
pack-priv synchronized void getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphMetrics.

getGlyphMetricsNativeback to summary
private native void getGlyphMetricsNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, Point2D.Float metrics)
getGlyphOutlineback to summary
pack-priv synchronized GeneralPath getGlyphOutline(long pScalerContext, int glyphCode, float x, float y) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphOutline.

getGlyphOutlineBoundsback to summary
pack-priv synchronized Rectangle2D.Float getGlyphOutlineBounds(long pScalerContext, int glyphCode) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphOutlineBounds.

getGlyphOutlineBoundsNativeback to summary
private native Rectangle2D.Float getGlyphOutlineBoundsNative(Font2D font, long pScalerContext, long pScaler, int glyphCode)
getGlyphOutlineNativeback to summary
private native GeneralPath getGlyphOutlineNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, float x, float y)
getGlyphPointback to summary
pack-priv synchronized Point2D.Float getGlyphPoint(long pScalerContext, int glyphCode, int ptNumber) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphPoint.

getGlyphPointNativeback to summary
private native Point2D.Float getGlyphPointNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, int ptNumber)
getGlyphVectorOutlineback to summary
pack-priv synchronized GeneralPath getGlyphVectorOutline(long pScalerContext, int[] glyphs, int numGlyphs, float x, float y) throws FontScalerException

Implements abstract sun.font.FontScaler.getGlyphVectorOutline.

getGlyphVectorOutlineNativeback to summary
private native GeneralPath getGlyphVectorOutlineNative(Font2D font, long pScalerContext, long pScaler, int[] glyphs, int numGlyphs, float x, float y)
getMissingGlyphCodeback to summary
pack-priv synchronized int getMissingGlyphCode() throws FontScalerException

Implements abstract sun.font.FontScaler.getMissingGlyphCode.

getMissingGlyphCodeNativeback to summary
private native int getMissingGlyphCodeNative(long pScaler)
getNumGlyphsback to summary
pack-priv synchronized int getNumGlyphs() throws FontScalerException

Implements abstract sun.font.FontScaler.getNumGlyphs.

getNumGlyphsNativeback to summary
private native int getNumGlyphsNative(long pScaler)
getUnitsPerEmback to summary
pack-priv synchronized long getUnitsPerEm()

Implements abstract sun.font.FontScaler.getUnitsPerEm.

getUnitsPerEMNativeback to summary
private native long getUnitsPerEMNative(long pScaler)
initIDsback to summary
private static native void initIDs(Class<?> FFS)
initNativeScalerback to summary
private native long initNativeScaler(Font2D font, int type, int indexInCollection, boolean supportsCJK, int filesize)
invalidateScalerback to summary
private void invalidateScaler() throws FontScalerException
invalidateScalerContextback to summary
pack-priv void invalidateScalerContext(long pScalerContext)

Implements abstract sun.font.FontScaler.invalidateScalerContext.