org.apache.fontbox.ttf
public class TTFSubFont extends java.lang.Object
Constructor and Description |
---|
TTFSubFont(TrueTypeFont baseFont,
java.lang.String suffix)
Constructs a subfont based on the given font using the given suffix.
|
Modifier and Type | Method and Description |
---|---|
void |
addCharCode(int charCode)
Add the given charcode to the subfpont.
|
void |
writeToStream(java.io.OutputStream os)
Write the subfont to the given output stream.
|
public TTFSubFont(TrueTypeFont baseFont, java.lang.String suffix)
baseFont
- the base font of the subfontsuffix
- suffix used for the namingpublic void addCharCode(int charCode)
charCode
- the charCode to be addedpublic void writeToStream(java.io.OutputStream os) throws java.io.IOException
os
- the stream used for writingjava.io.IOException
- if something went wrong.