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() |
protected void |
writeEncoding(CharTable charTable) |
static void |
writeEncoding(PDFWriter pdf,
String ref,
CharTable charTable) |
protected void |
writeWidths(double[] widths) |
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
openIncludeFont
in class FontIncluder
IOException
protected void closeEmbedFont()
closeEmbedFont
in class FontEmbedder
protected void writeWidths(double[] widths) throws IOException
writeWidths
in class FontEmbedder
IOException
protected void writeEncoding(CharTable charTable) throws IOException
writeEncoding
in class FontIncluder
IOException
public static void writeEncoding(PDFWriter pdf, String ref, CharTable charTable) throws IOException
IOException
Copyright © 2014. All rights reserved.