public class PdfTrueTypeFont extends PdfSimpleFont<TrueTypeFont>
fontEncoding, forceWidthsOutput, shortTagembedded, emptyBytes, fontProgram, newFont, notdefGlyphs, subset, subsetRanges| Modifier and Type | Method and Description |
|---|---|
protected void |
addFontStream(PdfDictionary fontDescriptor) |
protected void |
addRangeUni(Set<Integer> longTag) |
boolean |
containsGlyph(int unicode)
Check whether font contains glyph with specified unicode.
|
boolean |
containsGlyph(String text,
int from)
Check whether font contains glyph with specified unicode.
|
void |
flush()
To manually flush a
PdfObject behind this wrapper, you have to ensure
that this object is added to the document, i.e. |
Glyph |
getGlyph(int unicode)
Get glyph by unicode
|
appendAnyGlyph, appendGlyphs, convertToBytes, convertToBytes, convertToBytes, createGlyphLine, decode, decodeIntoGlyphLine, flushFontData, getContentWidth, getFontDescriptor, getFontEncoding, getFontProgram, isBuiltInFont, isForceWidthsOutput, setFontProgram, setForceWidthsOutput, writeText, writeTextaddSubsetRange, checkFontDictionary, checkTrueTypeFontDictionary, checkTrueTypeFontDictionary, compactRanges, containsGlyph, createSubsetPrefix, getAscent, getAscent, getDescent, getDescent, getFontMatrix, getPdfFontStream, getWidth, getWidth, getWidth, getWidth, isEmbedded, isSubset, isWrappedObjectMustBeIndirect, setSubset, splitString, splitString, toString, writeTextensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic Glyph getGlyph(int unicode)
PdfFontpublic boolean containsGlyph(String text, int from)
PdfFontcontainsGlyph in class PdfFonttext - a java unicode stringfrom - start index. one or two char may be used.public boolean containsGlyph(int unicode)
PdfFontcontainsGlyph in class PdfFontunicode - a unicode code pointpublic void flush()
PdfFontPdfObject behind this wrapper, you have to ensure
that this object is added to the document, i.e. it has an indirect reference.
Basically this means that before flushing you need to explicitly call PdfObjectWrapper.makeIndirect(PdfDocument).
For example: wrapperInstance.makeIndirect(document).flush();
Note that not every wrapper require this, only those that have such warning in documentation.protected void addFontStream(PdfDictionary fontDescriptor)
addFontStream in class PdfSimpleFont<TrueTypeFont>Copyright © 1998–2017 iText Group NV. All rights reserved.