public final class TtfReader extends Object
| Modifier and Type | Method and Description |
|---|---|
PDFStream |
createStream(byte embedType,
Hashtable charCodesUsed) |
PDFStream |
createStream(byte embedType,
int[] charCodesUsed,
int firstChar,
int lastChar) |
void |
dispose() |
static TtfReader |
fileReader(String fileName,
long offset) |
int |
getFontAscent() |
int |
getFontAvgWidth() |
String |
getFontBaseName() |
int[] |
getFontBBox() |
int |
getFontCapHeight() |
int |
getFontDescent() |
int |
getFontFlags() |
double |
getFontHeight() |
double |
getFontItalicAngle() |
int |
getFontMaxwidth() |
int |
getFontStyle() |
short |
getFontUnderlinePosition() |
short |
getFontUnderlineThickness() |
int[] |
getFontWidths(int firstChar,
int lastChar) |
int |
getGlyphWidthFromCMAP(int c) |
int[] |
getMacOrWinCharMetrics(int charCode) |
int |
getUnitsPerEm() |
boolean |
isCompositeGlyf(int charCode) |
boolean |
isFontEmbedOverrideRestriction() |
boolean |
isFontEmbedRestricted() |
void |
setFontEmbedOverrideRestriction(boolean fontEmbedOverrideRestriction) |
public static TtfReader fileReader(String fileName, long offset) throws IOException, PDFException
IOExceptionPDFExceptionpublic int getGlyphWidthFromCMAP(int c)
public double getFontItalicAngle()
public String getFontBaseName() throws IOException, PDFException
IOExceptionPDFExceptionpublic int[] getFontWidths(int firstChar,
int lastChar)
public int[] getFontBBox()
public int getFontStyle()
public int getFontFlags()
public int getFontAscent()
public int getFontDescent()
public int getFontCapHeight()
public double getFontHeight()
public int getFontAvgWidth()
public short getFontUnderlinePosition()
public short getFontUnderlineThickness()
public int getFontMaxwidth()
public int getUnitsPerEm()
public PDFStream createStream(byte embedType, Hashtable charCodesUsed) throws IOException, PDFException
IOExceptionPDFExceptionpublic PDFStream createStream(byte embedType, int[] charCodesUsed, int firstChar, int lastChar) throws IOException, PDFException
IOExceptionPDFExceptionpublic int[] getMacOrWinCharMetrics(int charCode)
public boolean isCompositeGlyf(int charCode)
throws IOException
IOExceptionpublic void dispose()
throws IOException
IOExceptionpublic void setFontEmbedOverrideRestriction(boolean fontEmbedOverrideRestriction)
public boolean isFontEmbedOverrideRestriction()
public boolean isFontEmbedRestricted()