public abstract class PDFFontEmbedder extends FontEmbedder
Modifier and Type | Field and Description |
---|---|
protected PDFWriter |
pdf
sloppily declared protected
|
NOTDEF
FONT_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, writeGlyph
closeIncludeFont, getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode
protected PDFWriter pdf
public PDFFontEmbedder(FontRenderContext context, PDFWriter pdf, String reference, PDFRedundanceTracker tracker)
protected abstract String getSubtype()
protected abstract void addAdditionalEntries(PDFDictionary fontDict) throws IOException
IOException
protected abstract void addAdditionalInitDicts() throws IOException
IOException
protected String getReference()
protected void openIncludeFont() throws IOException
FontIncluder
openIncludeFont
in class FontIncluder
IOException
protected void closeEmbedFont()
closeEmbedFont
in class FontEmbedder
protected void writeWidths(double[] widths) throws IOException
FontEmbedder
writeWidths
in class FontEmbedder
IOException
protected void writeEncoding(CharTable charTable) throws IOException
FontIncluder
writeEncoding
in class FontIncluder
IOException
public static void writeEncoding(PDFWriter pdf, String ref, CharTable charTable) throws IOException
IOException
Copyright © 2014. All rights reserved.