public class PdfType3Font extends PdfSimpleFont<Type3FontProgram>
PdfObjectWrapper the PdfObject
must be indirect.fontEncoding, forceWidthsOutput, shortTagembedded, emptyBytes, fontProgram, newFont, notdefGlyphs, subset, subsetRanges| Modifier and Type | Method and Description |
|---|---|
protected void |
addFontStream(PdfDictionary fontDescriptor) |
Type3Glyph |
addGlyph(char c,
int wx,
int llx,
int lly,
int urx,
int ury)
Defines a glyph.
|
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. |
protected PdfDocument |
getDocument() |
protected PdfDictionary |
getFontDescriptor(String fontName)
Generates the font descriptor for this font or
null if it is one of the 14 built in fonts. |
double[] |
getFontMatrix() |
Glyph |
getGlyph(int unicode)
Get glyph by unicode
|
Type3Glyph |
getType3Glyph(int unicode) |
boolean |
isEmbedded() |
boolean |
isSubset()
Indicates if all the glyphs and widths for that particular
encoding should be included in the document.
|
void |
setFontMatrix(double[] fontMatrix) |
appendAnyGlyph, appendGlyphs, convertToBytes, convertToBytes, convertToBytes, createGlyphLine, decode, decodeIntoGlyphLine, flushFontData, getContentWidth, getFontEncoding, getFontProgram, isBuiltInFont, isForceWidthsOutput, setFontProgram, setForceWidthsOutput, writeText, writeTextaddSubsetRange, checkFontDictionary, checkTrueTypeFontDictionary, checkTrueTypeFontDictionary, compactRanges, containsGlyph, createSubsetPrefix, getAscent, getAscent, getDescent, getDescent, getPdfFontStream, getWidth, getWidth, getWidth, getWidth, isWrappedObjectMustBeIndirect, setSubset, splitString, splitString, toString, writeTextensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic Type3Glyph getType3Glyph(int unicode)
public boolean isSubset()
PdfFontpublic boolean isEmbedded()
isEmbedded in class PdfFontpublic double[] getFontMatrix()
getFontMatrix in class PdfFontpublic void setFontMatrix(double[] fontMatrix)
public Type3Glyph addGlyph(char c, int wx, int llx, int lly, int urx, int ury)
c - the character to match this glyph.wx - the advance this character will havellx - the X lower left corner of the glyph bounding box. If the colorize option is
true the value is ignoredlly - the Y lower left corner of the glyph bounding box. If the colorize option is
true the value is ignoredurx - the X upper right corner of the glyph bounding box. If the colorize option is
true the value is ignoredury - the Y upper right corner of the glyph bounding box. If the colorize option is
true the value is ignoredpublic 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 pointprotected PdfDictionary getFontDescriptor(String fontName)
PdfSimpleFontnull if it is one of the 14 built in fonts.getFontDescriptor in class PdfSimpleFont<Type3FontProgram>null.protected void addFontStream(PdfDictionary fontDescriptor)
addFontStream in class PdfSimpleFont<Type3FontProgram>protected PdfDocument getDocument()
public 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.Copyright © 1998–2017 iText Group NV. All rights reserved.