|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.graphicsio.font.FontIncluder
org.freehep.graphicsio.font.FontEmbedder
org.freehep.graphicsio.ps.PSFontEmbedder
public class PSFontEmbedder
Type 3 Font Embedder class for Postscript.
Field Summary | |
---|---|
protected int |
dictSize
|
protected java.io.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(java.awt.font.FontRenderContext context,
java.io.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(java.lang.String unicodeName,
java.awt.Shape glyph,
java.awt.font.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 java.io.PrintStream os
Constructor Detail |
---|
public PSFontEmbedder(java.awt.font.FontRenderContext context, java.io.PrintStream os)
Method Detail |
---|
protected void writeGlyph(java.lang.String unicodeName, java.awt.Shape glyph, java.awt.font.GlyphMetrics glyphMetrics) throws java.io.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
java.io.IOException
protected void writeWidths(double[] widths) throws java.io.IOException
writeWidths
in class FontEmbedder
java.io.IOException
protected void writeEncoding(CharTable charTable) throws java.io.IOException
writeEncoding
in class FontIncluder
java.io.IOException
protected void openIncludeFont() throws java.io.IOException
openIncludeFont
in class FontIncluder
java.io.IOException
protected void closeIncludeFont() throws java.io.IOException
closeIncludeFont
in class FontIncluder
java.io.IOException
protected void writeBuildProcs() throws java.io.IOException
java.io.IOException
protected void openGlyphs() throws java.io.IOException
openGlyphs
in class FontEmbedder
java.io.IOException
protected void closeGlyphs() throws java.io.IOException
closeGlyphs
in class FontEmbedder
java.io.IOException
protected void closeEmbedFont() throws java.io.IOException
closeEmbedFont
in class FontEmbedder
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |