public class FontInfo
extends java.lang.Object
Constructor and Description |
---|
FontInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
hintingSize(Font font)
Gets the size of hinting instructions in the glyph table, both in bytes and
as a fraction of the glyph table size.
|
static DataDisplayTable |
listCharBlockCoverage(Font font)
Gets a list of Unicode blocks covered by the font and the amount each block
is covered.
|
static DataDisplayTable |
listChars(Font font)
Gets a list of code points of valid characters and their names in the given
font.
|
static DataDisplayTable |
listCharsNeededToCoverScript(Font font)
Gets a list of characters needed to fully cover scripts partially covered
by the font
|
static DataDisplayTable |
listCmaps(Font font)
Gets a list containing the platform ID, encoding ID, and format of all the
cmaps in a font
|
static DataDisplayTable |
listFontMetrics(Font font)
Gets a list of information regarding various dimensions about the given
font from the head, hhea, and OS/2 font tables
|
static DataDisplayTable |
listGlyphDimensionBounds(Font font)
Gets a list of minimum and maximum x and y dimensions for the glyphs in the
font.
|
static DataDisplayTable |
listNameEntries(Font font)
Gets a list of entries in the name table of a font.
|
static DataDisplayTable |
listScriptCoverage(Font font)
Gets a list of scripts covered by the font and the amount each block is
covered.
|
static DataDisplayTable |
listSubglyphFrequency(Font font)
Gets a list of glyphs in the font that are used as subglyphs and the number
of times each subglyph is used as a subglyph
|
static DataDisplayTable |
listTables(Font font)
Gets a list of tables in the font as well as their sizes.
|
static DataDisplayTable |
listUnmappedGlyphs(Font font)
Gets a list of IDs for glyphs that are not mapped by any cmap in the font
|
static int |
numChars(Font font)
Gets the number of valid characters in the given font
|
static int |
numGlyphs(Font font)
Gets the number of glyphs in the given font
|
static java.lang.String |
sfntVersion(Font font) |
public static java.lang.String sfntVersion(Font font)
font
- the source fontpublic static DataDisplayTable listFontMetrics(Font font)
font
- the source fontpublic static DataDisplayTable listTables(Font font)
font
- the source fontpublic static DataDisplayTable listNameEntries(Font font)
font
- the source fontpublic static DataDisplayTable listCmaps(Font font)
font
- the source fontpublic static int numChars(Font font)
font
- the source fontjava.lang.UnsupportedOperationException
- if font does not contain a UCS-4 or UCS-2 cmappublic static DataDisplayTable listChars(Font font)
font
- the source fontjava.lang.UnsupportedOperationException
- if font does not contain a UCS-4 or UCS-2 cmappublic static DataDisplayTable listCharBlockCoverage(Font font)
font
- the source fontpublic static DataDisplayTable listScriptCoverage(Font font)
font
- the source fontpublic static DataDisplayTable listCharsNeededToCoverScript(Font font)
font
- the source fontpublic static int numGlyphs(Font font)
font
- the source fontjava.lang.UnsupportedOperationException
- if font does not contain a valid glyf tablepublic static DataDisplayTable listGlyphDimensionBounds(Font font)
font
- the source fontpublic static java.lang.String hintingSize(Font font)
font
- the source fontpublic static DataDisplayTable listSubglyphFrequency(Font font)
font
- the source fontpublic static DataDisplayTable listUnmappedGlyphs(Font font)
font
- the source font