public class FontEmbedderType1 extends FontEmbedder
NOTDEF
FONT_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, includeFont
getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode
public FontEmbedderType1(FontRenderContext context, OutputStream out, boolean addZeros)
protected void writeWidths(double[] w) throws IOException
FontEmbedder
writeWidths
in class FontEmbedder
IOException
protected void writeEncoding(CharTable t) throws IOException
FontIncluder
writeEncoding
in class FontIncluder
IOException
protected void openIncludeFont() throws IOException
FontIncluder
openIncludeFont
in class FontIncluder
IOException
protected void closeIncludeFont()
FontIncluder
closeIncludeFont
in class FontIncluder
protected void openGlyphs() throws IOException
FontEmbedder
openGlyphs
in class FontEmbedder
IOException
protected void closeGlyphs() throws IOException
FontEmbedder
closeGlyphs
in class FontEmbedder
IOException
protected void closeEmbedFont() throws IOException
closeEmbedFont
in class FontEmbedder
IOException
protected void writeGlyph(String characterName, Shape glyph, GlyphMetrics glyphMetrics) throws IOException
FontEmbedder
writeGlyph
in class FontEmbedder
characterName
- the character's name according to the unicode standardglyph
- the shape that represents this glyphglyphMetrics
- the metrics of this glyphIOException
public int getAsciiLength()
public int getEncryptedLength()
Copyright © 2014. All rights reserved.