public abstract class FontIncluder extends Object
Modifier and Type | Field and Description |
---|---|
static double |
FONT_SIZE |
Constructor and Description |
---|
FontIncluder(FontRenderContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeIncludeFont()
Does nothing, but can be implemented by subclasses if necessary.
|
protected String |
getCharName(int i) |
protected FontRenderContext |
getContext() |
protected CharTable |
getEncodingTable() |
protected Font |
getFont() |
protected Rectangle2D |
getFontBBox() |
protected String |
getFontName() |
protected int |
getNODefinedChars() |
protected double |
getUndefinedWidth() |
protected char[] |
getUnicode() |
protected char |
getUnicode(int i) |
void |
includeFont(Font font,
CharTable charTable,
String name)
Embed this font to the file.
|
protected abstract void |
openIncludeFont()
Writes the given information about the font into the file.
|
protected abstract void |
writeEncoding(CharTable charTable)
Writes the encoding table to the file.
|
public static final double FONT_SIZE
public FontIncluder(FontRenderContext context)
protected abstract void openIncludeFont() throws IOException
IOException
protected abstract void writeEncoding(CharTable charTable) throws IOException
IOException
protected void closeIncludeFont() throws IOException
IOException
protected FontRenderContext getContext()
protected String getFontName()
protected Font getFont()
protected CharTable getEncodingTable()
protected Rectangle2D getFontBBox()
protected String getCharName(int i)
protected char getUnicode(int i)
protected char[] getUnicode()
protected int getNODefinedChars()
public void includeFont(Font font, CharTable charTable, String name) throws IOException
font
- The font to includename
- The name under which this font is addressed within the
document (can be retrieved by getFontName())IOException
protected double getUndefinedWidth()
Copyright © 2014. All rights reserved.