|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphicsio.font.FontIncluder org.freehep.graphicsio.font.FontEmbedder org.freehep.graphicsio.pdf.PDFFontEmbedder
Superclass of all FontEmbedders for PDF documents. Subclasses must implement all abstract methods which are called in the following order:
Field Summary | |
protected PDFWriter |
pdf
sloppily declared protected |
Fields inherited from class org.freehep.graphicsio.font.FontEmbedder |
NOTDEF |
Fields inherited from class org.freehep.graphicsio.font.FontIncluder |
FONT_SIZE |
Constructor Summary | |
PDFFontEmbedder(FontRenderContext context,
PDFWriter pdf,
String reference,
PDFRedundanceTracker tracker)
|
Method Summary | |
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. |
Methods inherited from class org.freehep.graphicsio.font.FontEmbedder |
closeGlyphs, getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont, openGlyphs, writeGlyph |
Methods inherited from class org.freehep.graphicsio.font.FontIncluder |
closeIncludeFont, getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PDFWriter pdf
Constructor Detail |
public PDFFontEmbedder(FontRenderContext context, PDFWriter pdf, String reference, PDFRedundanceTracker tracker)
Method Detail |
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
protected String createCharacterReference(String characterName)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |