APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public final Class NativeFont

extends PhysicalFont
Class Inheritance
Imports
java.awt.Font, .FontFormatException, .GraphicsEnvironment, java.awt.font.FontRenderContext, java.awt.geom.GeneralPath, .Point2D, .Rectangle2D, java.util.Locale

Field Summary

Modifier and TypeField and Description
pack-priv PhysicalFont
pack-priv String
pack-priv boolean
private int
Inherited from sun.font.PhysicalFont:
nativeNamesplatName

Constructor Summary

AccessConstructor and Description
public
NativeFont(String platName, boolean bitmapDelegate)

Verifies native font is accessible.

Method Summary

Modifier and TypeMethod and Description
private native int
countGlyphs(byte[] platformNameBytes, int ptSize)

pack-priv FontStrike
public static boolean
private static native boolean
fontExists(byte[] xlfd)

pack-priv PhysicalFont
pack-priv native StrikeMetrics
getFontMetrics(long pScalerContext)

Implements abstract sun.font.PhysicalFont.getFontMetrics.

pack-priv native float
getGlyphAdvance(long pContext, int glyphCode)

Implements abstract sun.font.PhysicalFont.getGlyphAdvance.

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

Implements abstract sun.font.PhysicalFont.getGlyphImage.

pack-priv native long
getGlyphImageNoDefault(long pScalerContext, int glyphCode)

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

Implements abstract sun.font.PhysicalFont.getGlyphMetrics.

public GeneralPath
getGlyphOutline(long pScalerContext, int glyphCode, float x, float y)

Implements abstract sun.font.PhysicalFont.getGlyphOutline.

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

Implements abstract sun.font.PhysicalFont.getGlyphOutlineBounds.

public GeneralPath
getGlyphVectorOutline(long pScalerContext, int[] glyphs, int numGlyphs, float x, float y)

Implements abstract sun.font.PhysicalFont.getGlyphVectorOutline.

public CharToGlyphMapper
getMapper()

Implements abstract sun.font.Font2D.getMapper.

public Rectangle2D
public int
pack-priv byte[]
pack-priv static boolean
private static native boolean
haveBitmapFonts(byte[] xlfd)

private void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from sun.font.PhysicalFont:
equalsgetGlyphPointhashCode

Field Detail

delegateFontback to summary
pack-priv PhysicalFont delegateFont
encodingback to summary
pack-priv String encoding
isBitmapDelegateback to summary
pack-priv boolean isBitmapDelegate
numGlyphsback to summary
private int numGlyphs

Constructor Detail

NativeFontback to summary
public NativeFont(String platName, boolean bitmapDelegate) throws FontFormatException

Verifies native font is accessible.

Exceptions
FontFormatException:
if the font can't be located.

Method Detail

countGlyphsback to summary
private native int countGlyphs(byte[] platformNameBytes, int ptSize)
createStrikeback to summary
pack-priv FontStrike createStrike(FontStrikeDesc desc)

Implements abstract sun.font.Font2D.createStrike.

Annotations
@Override
fontExistsback to summary
public static boolean fontExists(String xlfd)
fontExistsback to summary
private static native boolean fontExists(byte[] xlfd)
getDelegateFontback to summary
pack-priv PhysicalFont getDelegateFont()
getFontMetricsback to summary
pack-priv native StrikeMetrics getFontMetrics(long pScalerContext)

Implements abstract sun.font.PhysicalFont.getFontMetrics.

Annotations
@Override
getGlyphAdvanceback to summary
pack-priv native float getGlyphAdvance(long pContext, int glyphCode)

Implements abstract sun.font.PhysicalFont.getGlyphAdvance.

Annotations
@Override
getGlyphImageback to summary
pack-priv native long getGlyphImage(long pScalerContext, int glyphCode)

Implements abstract sun.font.PhysicalFont.getGlyphImage.

Annotations
@Override
getGlyphImageNoDefaultback to summary
pack-priv native long getGlyphImageNoDefault(long pScalerContext, int glyphCode)
getGlyphMetricsback to summary
pack-priv void getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics)

Implements abstract sun.font.PhysicalFont.getGlyphMetrics.

Annotations
@Override
getGlyphOutlineback to summary
public GeneralPath getGlyphOutline(long pScalerContext, int glyphCode, float x, float y)

Implements abstract sun.font.PhysicalFont.getGlyphOutline.

Annotations
@Override
getGlyphOutlineBoundsback to summary
pack-priv Rectangle2D.Float getGlyphOutlineBounds(long pScalerContext, int glyphCode)

Implements abstract sun.font.PhysicalFont.getGlyphOutlineBounds.

Annotations
@Override
getGlyphVectorOutlineback to summary
public GeneralPath getGlyphVectorOutline(long pScalerContext, int[] glyphs, int numGlyphs, float x, float y)

Implements abstract sun.font.PhysicalFont.getGlyphVectorOutline.

Annotations
@Override
getMapperback to summary
public CharToGlyphMapper getMapper()

Implements abstract sun.font.Font2D.getMapper.

Annotations
@Override
getMaxCharBoundsback to summary
public Rectangle2D getMaxCharBounds(FontRenderContext frc)
getNumGlyphsback to summary
public int getNumGlyphs()

Overrides sun.font.Font2D.getNumGlyphs.

Annotations
@Override
getPlatformNameBytesback to summary
pack-priv byte[] getPlatformNameBytes(int ptSize)
Annotations
@SuppressWarnings:cast
hasExternalBitmapsback to summary
pack-priv static boolean hasExternalBitmaps(String platName)
haveBitmapFontsback to summary
private static native boolean haveBitmapFonts(byte[] xlfd)
initNamesback to summary
private void initNames() throws FontFormatException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override