|
||||||||||
| 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.font.FontEmbedderType1
public class 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 FontEmbedderIOException
protected void writeEncoding(CharTable t)
throws IOException
FontIncluder
writeEncoding in class FontIncluderIOException
protected void openIncludeFont()
throws IOException
FontIncluder
openIncludeFont in class FontIncluderIOExceptionprotected void closeIncludeFont()
FontIncluder
closeIncludeFont in class FontIncluder
protected void openGlyphs()
throws IOException
FontEmbedder
openGlyphs in class FontEmbedderIOException
protected void closeGlyphs()
throws IOException
FontEmbedder
closeGlyphs in class FontEmbedderIOException
protected void closeEmbedFont()
throws IOException
closeEmbedFont in class FontEmbedderIOException
protected void writeGlyph(String characterName,
Shape glyph,
GlyphMetrics glyphMetrics)
throws IOException
FontEmbedder
writeGlyph in class FontEmbeddercharacterName - the character's name according to the unicode standardglyph - the shape that represents this glyphglyphMetrics - the metrics of this glyph
IOExceptionpublic int getAsciiLength()
public int getEncryptedLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||