public abstract class PDFFontEmbedder extends FontEmbedder
| Modifier and Type | Field and Description |
|---|---|
protected PDFWriter |
pdf
sloppily declared protected
|
NOTDEFFONT_SIZE| Constructor and Description |
|---|
PDFFontEmbedder(FontRenderContext context,
PDFWriter pdf,
String reference,
PDFRedundanceTracker tracker) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addAdditionalEntries(PDFDictionary fontDict)
Add additional entries to the font Dictionary.
|
protected abstract void |
addAdditionalInitDicts()
Add additional dicionaries to the PDFWriter which may be referenced by
entries generated by addAdditionalEntries()
|
protected void |
closeEmbedFont() |
protected String |
createCharacterReference(String characterName) |
protected String |
getReference()
Returns the reference String that identifies the font dictionary.
|
protected abstract String |
getSubtype()
Returns the font subtype (currently only Type3).
|
protected void |
openIncludeFont()
Writes the given information about the font into the file.
|
protected void |
writeEncoding(CharTable charTable)
Writes the encoding table to the file.
|
static void |
writeEncoding(PDFWriter pdf,
String ref,
CharTable charTable) |
protected void |
writeWidths(double[] widths)
Writes the character widths to the file.
|
closeGlyphs, getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont, openGlyphs, writeGlyphcloseIncludeFont, getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicodeprotected PDFWriter pdf
public PDFFontEmbedder(FontRenderContext context, PDFWriter pdf, String reference, PDFRedundanceTracker tracker)
protected abstract String getSubtype()
protected abstract void addAdditionalEntries(PDFDictionary fontDict) throws IOException
IOExceptionprotected abstract void addAdditionalInitDicts()
throws IOException
IOExceptionprotected String getReference()
protected void openIncludeFont()
throws IOException
FontIncluderopenIncludeFont in class FontIncluderIOExceptionprotected void closeEmbedFont()
closeEmbedFont in class FontEmbedderprotected void writeWidths(double[] widths)
throws IOException
FontEmbedderwriteWidths in class FontEmbedderIOExceptionprotected void writeEncoding(CharTable charTable) throws IOException
FontIncluderwriteEncoding in class FontIncluderIOExceptionpublic static void writeEncoding(PDFWriter pdf, String ref, CharTable charTable) throws IOException
IOExceptionCopyright © 2014. All rights reserved.