public class TrueTypeFont extends FontProgram
| Modifier and Type | Field and Description |
|---|---|
protected int[][] |
bBoxes |
protected boolean |
isVertical |
protected IntHashtable |
kerning
The map containing the kerning information.
|
avgWidth, codeToGlyph, DEFAULT_WIDTH, encodingScheme, fontIdentification, fontMetrics, fontNames, isFontSpecific, registry, unicodeToGlyph, UNITS_NORMALIZATION| Modifier | Constructor and Description |
|---|---|
protected |
TrueTypeFont() |
|
TrueTypeFont(byte[] ttf) |
|
TrueTypeFont(String path) |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,int[]> |
getActiveCmap() |
String[] |
getCodePagesSupported()
Gets the code pages supported by the font.
|
int |
getDirectoryOffset()
The offset from the start of the file to the table directory.
|
byte[] |
getFontStreamBytes() |
GlyphPositioningTableReader |
getGposTable() |
GlyphSubstitutionTableReader |
getGsubTable() |
int |
getKerning(Glyph first,
Glyph second)
Gets the kerning between two glyphs.
|
int |
getPdfFontFlags() |
byte[] |
getSubset(Set<Integer> glyphs,
boolean subset) |
boolean |
hasKernPairs() |
boolean |
isCff() |
protected void |
readGdefTable() |
protected void |
readGposTable() |
protected void |
readGsubTable() |
checkFilePath, countOfGlyphs, fixSpaceIssue, getAvgWidth, getBaseName, getCharBBox, getFontIdentification, getFontMetrics, getFontNames, getGlyph, getGlyphByCode, getKerning, getRegistry, getWidth, isFontSpecific, setBbox, setBold, setCapHeight, setFixedPitch, setFontFamily, setFontName, setFontWeight, setFontWidth, setItalicAngle, setRegistry, setStemH, setStemV, setTypoAscender, setTypoDescender, setXHeightprotected int[][] bBoxes
protected boolean isVertical
protected IntHashtable kerning
Integer where the top 16 bits
are the glyph number for the first character and the lower 16 bits are the
glyph number for the second character. The value is the amount of kerning in
normalized 1000 units as an Integer. This value is usually negative.protected TrueTypeFont()
public TrueTypeFont(String path) throws IOException
IOExceptionpublic TrueTypeFont(byte[] ttf)
throws IOException
IOExceptionpublic boolean hasKernPairs()
hasKernPairs in class FontProgrampublic int getKerning(Glyph first, Glyph second)
getKerning in class FontProgramfirst - the first glyphsecond - the second glyphpublic boolean isCff()
public byte[] getFontStreamBytes()
public int getPdfFontFlags()
getPdfFontFlags in class FontProgrampublic int getDirectoryOffset()
public GlyphSubstitutionTableReader getGsubTable()
public GlyphPositioningTableReader getGposTable()
protected void readGdefTable()
throws IOException
IOExceptionprotected void readGsubTable()
throws IOException
IOExceptionprotected void readGposTable()
throws IOException
IOExceptionpublic String[] getCodePagesSupported()
Copyright © 1998–2016 iText Group NV. All rights reserved.