public class FontEmbedderType1 extends FontEmbedder
NOTDEFFONT_SIZE| Constructor and Description |
|---|
FontEmbedderType1(FontRenderContext context,
OutputStream out,
boolean addZeros) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeEmbedFont() |
protected void |
closeGlyphs()
Called after the glyph loop ends.
|
protected void |
closeIncludeFont()
Does nothing, but can be implemented by subclasses if necessary.
|
int |
getAsciiLength()
Returns the length of the ascii portion of the output.
|
int |
getEncryptedLength()
Returns the length of the encrypted portion of the output.
|
protected void |
openGlyphs()
Called before the glyph loop starts.
|
protected void |
openIncludeFont()
Writes the given information about the font into the file.
|
protected void |
writeEncoding(CharTable t)
Writes the encoding table to the file.
|
protected void |
writeGlyph(String characterName,
Shape glyph,
GlyphMetrics glyphMetrics)
Writes a single glyph to the file.
|
protected void |
writeWidths(double[] w)
Writes the character widths to the file.
|
getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFontgetCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicodepublic FontEmbedderType1(FontRenderContext context, OutputStream out, boolean addZeros)
protected void writeWidths(double[] w)
throws IOException
FontEmbedderwriteWidths in class FontEmbedderIOExceptionprotected void writeEncoding(CharTable t) throws IOException
FontIncluderwriteEncoding in class FontIncluderIOExceptionprotected void openIncludeFont()
throws IOException
FontIncluderopenIncludeFont in class FontIncluderIOExceptionprotected void closeIncludeFont()
FontIncludercloseIncludeFont in class FontIncluderprotected void openGlyphs()
throws IOException
FontEmbedderopenGlyphs in class FontEmbedderIOExceptionprotected void closeGlyphs()
throws IOException
FontEmbeddercloseGlyphs in class FontEmbedderIOExceptionprotected void closeEmbedFont()
throws IOException
closeEmbedFont in class FontEmbedderIOExceptionprotected void writeGlyph(String characterName, Shape glyph, GlyphMetrics glyphMetrics) throws IOException
FontEmbedderwriteGlyph in class FontEmbeddercharacterName - the character's name according to the unicode standardglyph - the shape that represents this glyphglyphMetrics - the metrics of this glyphIOExceptionpublic int getAsciiLength()
public int getEncryptedLength()
Copyright © 2014. All rights reserved.