|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fontbox.ttf.TTFSubFont
public class TTFSubFont
A font, which is comprised of a subset of characters of a TrueType font. Based on code developed by Wolfgang Glas http://svn.clazzes.org/svn/sketch/trunk/pdf/pdf-entities/src/main/java/org/clazzes/sketch/pdf/entities/impl/TTFSubFont.java
Constructor Summary | |
---|---|
TTFSubFont(TrueTypeFont baseFont,
java.lang.String suffix)
Constructs a subfont based on the given font using the given suffix. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TTFSubFont(TrueTypeFont baseFont, java.lang.String suffix)
baseFont
- the base font of the subfontsuffix
- suffix used for the namingMethod Detail |
---|
public 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 writing
java.io.IOException
- if something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |