public interface IFont
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(com.gnostice.xtremefontengine.GtStreamReader gtStReader) |
void |
close() |
float |
getAdvanceWidthX(int gid,
int fontSize) |
int |
getAscent()
Returns ascent height of glyphs in the font.
|
int[] |
getBBox()
Returns bounding box dimensions of glyphs in the font.
|
int |
getDescent()
Returns descent height of glyphs in the font.
|
FontType |
getFontType()
Returns the type of the font.
|
TreeMap<Integer,String> |
getGlyphIDNameMap()
Returns all glyphs in the font.
|
Font |
getJavaAWTFont(boolean registerInGraphicsEnvironment,
boolean installInOSPvtFontCollection,
boolean[] isFontInstalledInOS) |
int |
getNumberOfGlyphs() |
GeneralPath |
getOutlineForCharcode(int charcode,
float fontSize,
int dpi,
EncodingType encoding)
Returns outline for specified character code.
|
GeneralPath |
getOutlineForGlyphID(int glyphID,
float fontSize,
int dpi,
EncodingType encoding)
Returns outline for specified glyph ID.
|
GeneralPath |
getOutlineForGlyphName(String glyphName,
float fontSize,
int dpi,
EncodingType encoding)
Returns outline for specified glyph name.
|
int |
getPropertyCount()
Returns number of properties supported by the font.
|
FontPropertyInfo |
getPropertyInfo(int index)
Returns property specified by its index.
|
byte[] |
getStreamforEmbedding(boolean embeddedType,
List<String> listOfGlyphs) |
List<EncodingType> |
getSupportedEncodings()
Returns encodings supported by the font.
|
int |
getUnits_per_em()
Returns font units per "em" square, the theoretical box inside
which most glyphs are designed.
|
boolean check(com.gnostice.xtremefontengine.GtStreamReader gtStReader)
throws IOException
IOExceptionint getNumberOfGlyphs()
GeneralPath getOutlineForCharcode(int charcode, float fontSize, int dpi, EncodingType encoding) throws IOException, XFEException
charcode - character codefontSize - size of the fontdpi - pixel densityencoding - font encodingIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.GeneralPath getOutlineForGlyphID(int glyphID, float fontSize, int dpi, EncodingType encoding) throws IOException, XFEException
glyphID - glyph IDfontSize - font sizedpi - pixel densityencoding - font encodingIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.GeneralPath getOutlineForGlyphName(String glyphName, float fontSize, int dpi, EncodingType encoding) throws IOException, XFEException
glyphName - name of the glyphfontSize - font sizedpi - pixel densityencoding - font densityIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.int getPropertyCount()
throws XFEException
XFEException - if an illegal argument is supplied.FontPropertyInfo getPropertyInfo(int index) throws XFEException
index - index of the propertyXFEException - if an illegal argument is supplied.List<EncodingType> getSupportedEncodings()
TreeMap<Integer,String> getGlyphIDNameMap() throws IOException
IOException - if an I/O occurs.int getUnits_per_em()
int[] getBBox()
int getAscent()
int getDescent()
void close()
throws IOException
IOExceptionFont getJavaAWTFont(boolean registerInGraphicsEnvironment, boolean installInOSPvtFontCollection, boolean[] isFontInstalledInOS) throws IOException, XFEException
IOExceptionXFEExceptionbyte[] getStreamforEmbedding(boolean embeddedType,
List<String> listOfGlyphs)
throws IOException,
XFEException
IOExceptionXFEExceptionfloat getAdvanceWidthX(int gid,
int fontSize)