public class PdfTrueTypeFont extends PdfSimpleFont<TrueTypeFont>
fontEncoding, forceWidthsOutput, shortTag, toUnicode
DEFAULT_FONT_MATRIX, embedded, EMPTY_BYTES, fontProgram, newFont, notdefGlyphs, SIMPLE_FONT_MAX_CHAR_CODE_VALUE, subset, subsetRanges
Modifier and Type | Method and Description |
---|---|
protected void |
addFontStream(PdfDictionary fontDescriptor) |
protected void |
addRangeUni(Set<Integer> longTag)
Deprecated.
|
boolean |
containsGlyph(int unicode)
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
|
protected boolean |
isBuiltInFont()
Indicates that the font is built in, i.e.
|
appendAnyGlyph, appendDecodedCodesToGlyphsList, appendGlyphs, buildWidthsArray, convertToBytes, convertToBytes, convertToBytes, createGlyphLine, decode, decodeIntoGlyphLine, flushFontData, getContentWidth, getFontDescriptor, getFontEncoding, getGlyphWidth, getToUnicode, isBuiltWith, isForceWidthsOutput, setFontProgram, setForceWidthsOutput, writeText, writeText
addSubsetRange, compactRanges, getAscent, getAscent, getDescent, getDescent, getFontMatrix, getFontProgram, getPdfFontStream, getWidth, getWidth, getWidth, getWidth, isEmbedded, isSubset, isWrappedObjectMustBeIndirect, setSubset, splitString, toString, updateSubsetPrefix
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public Glyph getGlyph(int unicode)
PdfFont
public boolean containsGlyph(int unicode)
PdfFont
containsGlyph
in class PdfFont
unicode
- a unicode code point
public void flush()
PdfFont
PdfObject
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.
@Deprecated protected void addRangeUni(Set<Integer> longTag)
TrueTypeFont.updateUsedGlyphs(SortedSet, boolean, List)
longTag
- a set of integers, which are glyph ids that denote used glyphs. This set is updated inside of the method if needed.
protected void addFontStream(PdfDictionary fontDescriptor)
addFontStream
in class PdfSimpleFont<TrueTypeFont>
protected boolean isBuiltInFont()
isBuiltInFont
in class PdfSimpleFont<TrueTypeFont>
true
in case the font is a Standard font and false
otherwise
Copyright © 1998–2023 iText Group NV. All rights reserved.