|
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.font.FontEmbedderType1
Font embedder for type 1 fonts. The output can be directly fed into a ps file or as a FontFile to a pdf file.
Field Summary |
Fields inherited from class org.freehep.graphicsio.font.FontEmbedder |
NOTDEF |
Fields inherited from class org.freehep.graphicsio.font.FontIncluder |
FONT_SIZE |
Constructor Summary | |
FontEmbedderType1(FontRenderContext context,
OutputStream out,
boolean addZeros)
|
Method Summary | |
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. |
Methods inherited from class org.freehep.graphicsio.font.FontEmbedder |
getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont |
Methods inherited from class org.freehep.graphicsio.font.FontIncluder |
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 |
Constructor Detail |
public FontEmbedderType1(FontRenderContext context, OutputStream out, boolean addZeros)
Method Detail |
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 glyph
IOException
public int getAsciiLength()
public int getEncryptedLength()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |