|
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.ps.PSFontEmbedder
Type 3 Font Embedder class for Postscript.
Field Summary | |
protected int |
dictSize
|
protected PrintStream |
os
|
Fields inherited from class org.freehep.graphicsio.font.FontEmbedder |
NOTDEF |
Fields inherited from class org.freehep.graphicsio.font.FontIncluder |
FONT_SIZE |
Constructor Summary | |
PSFontEmbedder(FontRenderContext context,
PrintStream os)
|
Method Summary | |
protected void |
closeEmbedFont()
Closes font dictionary. |
protected void |
closeGlyphs()
Closes Glyphs dictionary. |
protected void |
closeIncludeFont()
Closes font dictionary. |
protected void |
openGlyphs()
Writes necessary commands to find Glyphs dictionary from font dictionary and puts it on the stack, opens dictionary to write glyph definitions. |
protected void |
openIncludeFont()
Writes initial parts of the font dictionary. |
protected void |
writeBuildProcs()
|
protected void |
writeEncoding(CharTable charTable)
writes encoding array. |
protected void |
writeGlyph(String unicodeName,
Shape glyph,
GlyphMetrics glyphMetrics)
Writes Glyph definition of given glyph. |
protected void |
writeWidths(double[] widths)
writes metric dictionary for the font. |
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 |
Field Detail |
protected int dictSize
protected PrintStream os
Constructor Detail |
public PSFontEmbedder(FontRenderContext context, PrintStream os)
Method Detail |
protected void writeGlyph(String unicodeName, Shape glyph, GlyphMetrics glyphMetrics) throws IOException
writeGlyph
in class FontEmbedder
unicodeName
- the character's name according to the unicode standardglyph
- the shape that represents this glyphglyphMetrics
- the metrics of this glyph
IOException
protected void writeWidths(double[] widths) throws IOException
writeWidths
in class FontEmbedder
IOException
protected void writeEncoding(CharTable charTable) throws IOException
writeEncoding
in class FontIncluder
IOException
protected void openIncludeFont() throws IOException
openIncludeFont
in class FontIncluder
IOException
protected void closeIncludeFont() throws IOException
closeIncludeFont
in class FontIncluder
IOException
protected void writeBuildProcs() throws IOException
IOException
protected void openGlyphs() throws IOException
openGlyphs
in class FontEmbedder
IOException
protected void closeGlyphs() throws IOException
closeGlyphs
in class FontEmbedder
IOException
protected void closeEmbedFont() throws IOException
closeEmbedFont
in class FontEmbedder
IOException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |