Modifier and Type | Method and Description |
---|---|
Font |
Font.Builder.build()
Build the
Font . |
Font[] |
FontFactory.loadFonts(byte[] b)
Load the font(s) from the byte array.
|
Font[] |
FontFactory.loadFonts(java.io.InputStream is)
Load the font(s) from the input stream.
|
Modifier and Type | Method and Description |
---|---|
void |
FontFactory.serializeFont(Font font,
java.io.OutputStream os)
Serialize the font to the output stream.
|
Modifier and Type | Method and Description |
---|---|
static Font[] |
TestFontUtils.buildAndCheckFont(FontFactory fontFactory,
java.io.InputStream is,
int debug) |
static Font[] |
TestFontUtils.loadFont(java.io.File file)
Open a file and read any fonts that it contains.
|
static Font[] |
TestFontUtils.loadFont(java.io.File file,
boolean fingerprint)
Open a file and read any fonts that it contains.
|
static Font[] |
TestFontUtils.loadFont(java.io.File file,
byte[]... expectedFingerprints)
Open a file and read any fonts that it contains and check the fonts against supplied expected
fingerprints.
|
static Font[] |
TestFontUtils.loadFontUsingByteArray(java.io.File file)
Open a file and read any fonts that it contains.
|
static Font[] |
TestFontUtils.loadFontUsingByteArray(java.io.File file,
boolean fingerprint)
Open a file and read any fonts that it contains.
|
Modifier and Type | Method and Description |
---|---|
static java.io.File |
TestFontUtils.serializeFont(Font font,
java.io.File serializedFontFile) |
static java.io.File |
TestFontUtils.serializeFont(Font font,
java.lang.String extension) |
Modifier and Type | Method and Description |
---|---|
byte[] |
MtxWriter.compress(Font sfntlyFont) |
WritableFontData |
EOTWriter.convert(Font font) |
WritableFontData |
HdmxEncoder.encode(Font sourceFont) |
void |
GlyfEncoder.encode(Font sourceFont) |
Modifier and Type | Method and Description |
---|---|
WritableFontData |
WoffWriter.convert(Font font) |
Modifier and Type | Method and Description |
---|---|
static Font[] |
FontUtils.getFonts(java.io.InputStream is)
Gets a Font object for a font file in the InputStream
|
static Font[] |
FontUtils.getFonts(java.lang.String fontFile)
Gets a Font object for a font file in the given path
|
Modifier and Type | Method and Description |
---|---|
static CMapTable |
FontUtils.getCMapTable(Font font)
Gets the cmap table for the given font
|
static GlyphTable |
FontUtils.getGlyphTable(Font font)
Gets the glyph table for the given font
|
static LocaTable |
FontUtils.getLocaTable(Font font)
Gets the loca table for the given font
|
static Table |
FontUtils.getTable(Font font,
int tag)
Gets the table with the specified tag for the given font
|
static CMap |
FontUtils.getUCSCMap(Font font)
Gets either a UCS4 or UCS2 cmap, if available
|
static java.lang.String |
FontInfo.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 |
FontInfo.listCharBlockCoverage(Font font)
Gets a list of Unicode blocks covered by the font and the amount each block
is covered.
|
static DataDisplayTable |
FontInfo.listChars(Font font)
Gets a list of code points of valid characters and their names in the given
font.
|
static DataDisplayTable |
FontInfo.listCharsNeededToCoverScript(Font font)
Gets a list of characters needed to fully cover scripts partially covered
by the font
|
static DataDisplayTable |
FontInfo.listCmaps(Font font)
Gets a list containing the platform ID, encoding ID, and format of all the
cmaps in a font
|
static DataDisplayTable |
FontInfo.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 |
FontInfo.listGlyphDimensionBounds(Font font)
Gets a list of minimum and maximum x and y dimensions for the glyphs in the
font.
|
static DataDisplayTable |
FontInfo.listNameEntries(Font font)
Gets a list of entries in the name table of a font.
|
static DataDisplayTable |
FontInfo.listScriptCoverage(Font font)
Gets a list of scripts covered by the font and the amount each block is
covered.
|
static DataDisplayTable |
FontInfo.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 |
FontInfo.listTables(Font font)
Gets a list of tables in the font as well as their sizes.
|
static DataDisplayTable |
FontInfo.listUnmappedGlyphs(Font font)
Gets a list of IDs for glyphs that are not mapped by any cmap in the font
|
static int |
FontInfo.numChars(Font font)
Gets the number of valid characters in the given font
|
static int |
FontInfo.numGlyphs(Font font)
Gets the number of glyphs in the given font
|
static java.lang.String |
FontInfo.sfntVersion(Font font) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Integer> |
GlyphCoverage.getGlyphCoverage(Font font,
java.lang.String string) |
Modifier and Type | Method and Description |
---|---|
boolean |
PostScriptTableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
CMapTableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
GlyphTableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
RenumberingCMapTableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
HorizontalMetricsTableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
TableSubsetter.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
boolean |
GlyphTableStripper.subset(Subsetter subsetter,
Font font,
Font.Builder fontBuilder) |
Constructor and Description |
---|
DumbSubsetter(Font font,
FontFactory fontFactory) |
HintStripper(Font font,
FontFactory fontFactory) |
RenumberingSubsetter(Font font,
FontFactory fontFactory) |