APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public Class FileFontStrike

extends PhysicalStrike
Class Inheritance
Imports
java.lang.ref.SoftReference, .WeakReference, java.awt.Font, .GraphicsEnvironment, .Rectangle, java.awt.geom.AffineTransform, .GeneralPath, .NoninvertibleTransformException, .Point2D, .Rectangle2D, java.util.concurrent.ConcurrentHashMap, sun.java2d.pipe.OutlineTextRenderer

Field Summary

Modifier and TypeField and Description
pack-priv ConcurrentHashMap<Integer, Rectangle2D.Float>
private FileFont
private volatile int
pack-priv SoftReference<ConcurrentHashMap<Integer, Point2D.Float>>
private float[]
private static final int
private int
pack-priv AffineTransform
pack-priv static final int
private static final int
pack-priv static final int
pack-priv NativeStrike[]
private WeakReference<ConcurrentHashMap<Integer, GeneralPath>>
private float[][]
private static final int
private int[][]
private static final int
private long[][]
private boolean
private static final int
private static final int
private static final int
pack-priv boolean
Inherited from sun.font.PhysicalStrike:
complexTXgetImageWithAdvanceglyphPointMapCacheintGlyphImagesINTMASKlongAddresseslongGlyphImagesmapperpScalerContext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private native long
_getGlyphImageFromWindows(String family, int style, int size, int glyphCode, boolean fracMetrics, int fontDataSize)

protected void
pack-priv long
getCachedGlyphPtr(int glyphCode)

private long
pack-priv Point2D.Float
pack-priv float
pack-priv StrikeMetrics
pack-priv float
getGlyphAdvance(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphAdvance.

private float
getGlyphAdvance(int glyphCode, boolean getUserAdv)

pack-priv void
getGlyphImageBounds(int glyphCode, Point2D.Float pt, Rectangle result)

Implements abstract sun.font.FontStrike.getGlyphImageBounds.

Result and pt are both in device space.

pack-priv long
getGlyphImageFromNative(int glyphCode)

pack-priv long
getGlyphImageFromWindows(int glyphCode)

pack-priv long
getGlyphImageFromX11(int glyphCode)

private int
getGlyphImageMinX(long ptr, int origMinX)

pack-priv long
getGlyphImagePtr(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphImagePtr.

pack-priv void
getGlyphImagePtrs(int[] glyphCodes, long[] images, int len)

Implements abstract sun.font.FontStrike.getGlyphImagePtrs.

pack-priv Point2D.Float
getGlyphMetrics(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphMetrics.

private Point2D.Float
getGlyphMetrics(int glyphCode, boolean getImage)

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

Implements abstract sun.font.FontStrike.getGlyphOutline.

pack-priv Rectangle2D.Float
public int
public Rectangle2D
getOutlineBounds(int glyphCode)

pack-priv int
getSlot0GlyphImagePtrs(int[] glyphCodes, long[] images, int len)

Overrides sun.font.PhysicalStrike.getSlot0GlyphImagePtrs.

private synchronized void
private synchronized long
setCachedGlyphPtr(int glyphCode, long glyphPtr)

private long
setCachedGlyphPtrInternal(int glyphCode, long glyphPtr)

Inherited from sun.font.PhysicalStrike:
getGlyphPoint

Field Detail

boundsMapback to summary
pack-priv ConcurrentHashMap<Integer, Rectangle2D.Float> boundsMap
fileFontback to summary
private FileFont fileFont
glyphCacheFormatback to summary
private volatile int glyphCacheFormat
glyphMetricsMapRefback to summary
pack-priv SoftReference<ConcurrentHashMap<Integer, Point2D.Float>> glyphMetricsMapRef
horizontalAdvancesback to summary
private float[] horizontalAdvances
INTARRAYback to summary
private static final int INTARRAY
intPtSizeback to summary
private int intPtSize
invertDevTxback to summary
pack-priv AffineTransform invertDevTx
INVISIBLE_GLYPHSback to summary
pack-priv static final int INVISIBLE_GLYPHS
LONGARRAYback to summary
private static final int LONGARRAY
MAX_IMAGE_SIZEback to summary
pack-priv static final int MAX_IMAGE_SIZE
nativeStrikesback to summary
pack-priv NativeStrike[] nativeStrikes
outlineMapRefback to summary
private WeakReference<ConcurrentHashMap<Integer, GeneralPath>> outlineMapRef
segHorizontalAdvancesback to summary
private float[][] segHorizontalAdvances
SEGINTARRAYback to summary
private static final int SEGINTARRAY
segIntGlyphImagesback to summary
private int[][] segIntGlyphImages
SEGLONGARRAYback to summary
private static final int SEGLONGARRAY
segLongGlyphImagesback to summary
private long[][] segLongGlyphImages
segmentedCacheback to summary
private boolean segmentedCache
SEGSHIFTback to summary
private static final int SEGSHIFT
SEGSIZEback to summary
private static final int SEGSIZE
UNINITIALISEDback to summary
private static final int UNINITIALISED
useNativesback to summary
pack-priv boolean useNatives

Constructor Detail

FileFontStrikeback to summary
pack-priv FileFontStrike(FileFont fileFont, FontStrikeDesc desc)

Method Detail

_getGlyphImageFromWindowsback to summary
private native long _getGlyphImageFromWindows(String family, int style, int size, int glyphCode, boolean fracMetrics, int fontDataSize)
adjustPointback to summary
protected void adjustPoint(Point2D.Float pt)

Overrides sun.font.PhysicalStrike.adjustPoint.

getCachedGlyphPtrback to summary
pack-priv long getCachedGlyphPtr(int glyphCode)
getCachedGlyphPtrInternalback to summary
private long getCachedGlyphPtrInternal(int glyphCode)
getCharMetricsback to summary
pack-priv Point2D.Float getCharMetrics(char ch)

Overrides sun.font.PhysicalStrike.getCharMetrics.

getCodePointAdvanceback to summary
pack-priv float getCodePointAdvance(int cp)

Overrides sun.font.PhysicalStrike.getCodePointAdvance.

getFontMetricsback to summary
pack-priv StrikeMetrics getFontMetrics()

Overrides sun.font.PhysicalStrike.getFontMetrics.

getGlyphAdvanceback to summary
pack-priv float getGlyphAdvance(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphAdvance.

getGlyphAdvanceback to summary
private float getGlyphAdvance(int glyphCode, boolean getUserAdv)
getGlyphImageBoundsback to summary
pack-priv void getGlyphImageBounds(int glyphCode, Point2D.Float pt, Rectangle result)

Implements abstract sun.font.FontStrike.getGlyphImageBounds.

Result and pt are both in device space.

getGlyphImageFromNativeback to summary
pack-priv long getGlyphImageFromNative(int glyphCode)
getGlyphImageFromWindowsback to summary
pack-priv long getGlyphImageFromWindows(int glyphCode)
getGlyphImageFromX11back to summary
pack-priv long getGlyphImageFromX11(int glyphCode)
getGlyphImageMinXback to summary
private int getGlyphImageMinX(long ptr, int origMinX)
getGlyphImagePtrback to summary
pack-priv long getGlyphImagePtr(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphImagePtr.

getGlyphImagePtrsback to summary
pack-priv void getGlyphImagePtrs(int[] glyphCodes, long[] images, int len)

Implements abstract sun.font.FontStrike.getGlyphImagePtrs.

getGlyphMetricsback to summary
pack-priv Point2D.Float getGlyphMetrics(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphMetrics.

getGlyphMetricsback to summary
private Point2D.Float getGlyphMetrics(int glyphCode, boolean getImage)
getGlyphOutlineback to summary
pack-priv GeneralPath getGlyphOutline(int glyphCode, float x, float y)

Implements abstract sun.font.FontStrike.getGlyphOutline.

getGlyphOutlineBoundsback to summary
pack-priv Rectangle2D.Float getGlyphOutlineBounds(int glyphCode)

Implements abstract sun.font.FontStrike.getGlyphOutlineBounds.

getNumGlyphsback to summary
public int getNumGlyphs()

Overrides sun.font.PhysicalStrike.getNumGlyphs.

getOutlineBoundsback to summary
public Rectangle2D getOutlineBounds(int glyphCode)
getSlot0GlyphImagePtrsback to summary
pack-priv int getSlot0GlyphImagePtrs(int[] glyphCodes, long[] images, int len)

Overrides sun.font.PhysicalStrike.getSlot0GlyphImagePtrs.

initGlyphCacheback to summary
private synchronized void initGlyphCache()
setCachedGlyphPtrback to summary
private synchronized long setCachedGlyphPtr(int glyphCode, long glyphPtr)
setCachedGlyphPtrInternalback to summary
private long setCachedGlyphPtrInternal(int glyphCode, long glyphPtr)