public class TrueType extends PdfFont
allNumbers, CMapName, containsHexNumbers, copyright, currentPdfFile, diffs, embeddedEnc, embeddedFamilyName, embeddedFontName, encodingCmapSpec, FontBBox, fontEnc, fontID, FontMatrix, fontTypes, glyphs, hasDoubleBytes, hasEncoding, isCIDFont, isFontEmbedded, isFontSubstituted, isFontVertical, isHex, italicAngle, loader, maxCharCount, rawDiffKeys, renderPage, substituteFont, substituteFontFile, TTstreamisCID| Constructor and Description |
|---|
TrueType() |
TrueType(PdfObjectReader current_pdf_file,
String substituteFont)
get handles onto Reader so we can access the file
|
| Modifier and Type | Method and Description |
|---|---|
void |
createFont(PdfObject pdfObject,
String fontID,
boolean renderPage,
ObjectStore objectStore,
Map<String,PdfJavaGlyphs> substitutedFonts)
read in a font and its details from the pdf file
|
Rectangle |
getBoundingBox()
get bounding box to highlight
|
protected void |
readEmbeddedFont(byte[] fontDataAsArray,
FontData fontDataAsObject,
boolean hasEncoding)
read truetype font data and also install font onto System
so we can use
|
protected void |
substituteFontUsed(String substituteFontFile)
allows us to substitute a font to use for display
|
createCIDFont, getBaseFontName, getCIDToGIDMap, getCMAP, getCopyright, getCurrentFontSpaceWidth, getDefaultWidth, getDescent, getDiffChar, getDiffChar, getDiffMapping, getEmbeddedChar, getEncodedCMAPValue, getFontBounds, getFontEncoding, getFontID, getFontName, getFontType, getGlyphData, getGlyphValue, getGlyphWidth, getJavaFontX, getMappedChar, getObjID, getSpaces, getSpaceWidthHTML, getSubstituteFont, getToUnicode, getTruncatedName, getUnicodeMapping, getUnicodeValue, getWidth, hasToUnicode, init, init, is1C, isBrokenFont, isCIDFont, isDoubleBytes, isDoubleBytes, isFontSubsetted, isFontSubstituted, isFontVertical, isSingleByte, isWidthVertical, putFontEncoding, putMappedChar, readWidths, resetNameForHTML, setBoundsAndMatrix, setDefaultDisplayFont, setEncoding, setFont, setLastWidth, setName, setRawFontName, setValuesForGlyphpublic TrueType()
public TrueType(PdfObjectReader current_pdf_file, String substituteFont)
protected void substituteFontUsed(String substituteFontFile) throws PdfFontException
PdfFontExceptionpublic void createFont(PdfObject pdfObject, String fontID, boolean renderPage, ObjectStore objectStore, Map<String,PdfJavaGlyphs> substitutedFonts) throws Exception
createFont in class PdfFontExceptionprotected final void readEmbeddedFont(byte[] fontDataAsArray,
FontData fontDataAsObject,
boolean hasEncoding)
public Rectangle getBoundingBox()
getBoundingBox in class PdfFontCopyright © 2017. All rights reserved.