public class PdfType1Font extends PdfSimpleFont<Type1Font>
fontEncoding, forceWidthsOutput, shortTag, toUnicode
DEFAULT_FONT_MATRIX, embedded, EMPTY_BYTES, fontProgram, newFont, notdefGlyphs, subset, subsetRanges
Modifier and Type | Method and Description |
---|---|
protected void |
addFontStream(PdfDictionary fontDescriptor)
If the embedded flag is false or if the font is one of the 14 built in types, it returns null , otherwise the font is read and output in a PdfStream object.
|
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() |
boolean |
isSubset()
Indicates if all the glyphs and widths for that particular encoding should be included in the document.
|
void |
setSubset(boolean subset)
Indicates if all the glyphs and widths for that particular encoding should be included in the document.
|
appendAnyGlyph, appendGlyphs, convertToBytes, convertToBytes, convertToBytes, createGlyphLine, decode, decodeIntoGlyphLine, flushFontData, getContentWidth, getFontDescriptor, getFontEncoding, isBuiltWith, isForceWidthsOutput, setFontProgram, setForceWidthsOutput, writeText, writeText
addSubsetRange, compactRanges, getAscent, getAscent, getDescent, getDescent, getFontMatrix, getFontProgram, getPdfFontStream, getWidth, getWidth, getWidth, getWidth, isEmbedded, isWrappedObjectMustBeIndirect, splitString, toString, updateSubsetPrefix
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public boolean isSubset()
PdfFont
public void setSubset(boolean subset)
PdfFont
true
only the glyphs used will be included in the font. When set to false
the full font will be included and all subset ranges will be removed.
setSubset
in class PdfFont
subset
- new value of property subset
PdfFont.addSubsetRange(int[])
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.
public Glyph getGlyph(int unicode)
PdfFont
public boolean containsGlyph(int unicode)
PdfFont
containsGlyph
in class PdfFont
unicode
- a unicode code point
protected boolean isBuiltInFont()
isBuiltInFont
in class PdfSimpleFont<Type1Font>
protected void addFontStream(PdfDictionary fontDescriptor)
false
or if the font is one of the 14 built in types, it returns null
, otherwise the font is read and output in a PdfStream object.
addFontStream
in class PdfSimpleFont<Type1Font>
Copyright © 1998–2020 iText Group NV. All rights reserved.