|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.Resource
|
+--com.cete.dynamicpdf.Font
|
+--com.cete.dynamicpdf.text.TrueTypeFont
Represents a TrueType font.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
TrueTypeFont(java.lang.String filePath)
Initializes a new instance of the TrueTypeFont class. |
|
TrueTypeFont(java.lang.String filePath,
LineBreaker lineBreaker)
Initializes a new instance of the TrueTypeFont class. |
|
| Method Summary | |
void |
draw(DocumentWriter writer)
Draws the TrueType font to the given DocumentWriter object. |
short |
getAscender()
Gets the ascender for the font. |
short |
getDescender()
Gets the descender for the font. |
boolean |
getEmbed()
Gets a value indicating if the font should be embedded. |
FontSubsetter |
getFontSubsetter()
Returns a font subsetter for the TrueType font. |
int |
getGlyphWidth(char glyph)
Returns the mwidth of a glyph. |
LineBreaker |
getLineBreaker()
Gets the default line breaker for the font. |
short |
getLineGap()
Gets the line gap for the font. |
java.lang.String |
getName()
Gets the name of the font. |
int |
getRequiredPdfObjects()
Gets the number of PDF objects required by the TrueType font. |
void |
setEmbed(boolean value)
Sets a value indicating if the font should be embedded. |
| Methods inherited from class com.cete.dynamicpdf.Resource |
getUid, newUid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TrueTypeFont(java.lang.String filePath)
TrueTypeFont class.
filePath - Physical file path to the TrueType font file.
public TrueTypeFont(java.lang.String filePath,
LineBreaker lineBreaker)
TrueTypeFont class.
filePath - Physical file path to the TrueType font file.lineBreaker - Line breaker to use for the TrueType font.LineBreaker| Method Detail |
public int getRequiredPdfObjects()
getRequiredPdfObjects in class Resourcepublic short getDescender()
getDescender in class Fontpublic short getAscender()
getAscender in class Fontpublic short getLineGap()
getLineGap in class Fontpublic java.lang.String getName()
getName in class Fontpublic boolean getEmbed()
public void setEmbed(boolean value)
public LineBreaker getLineBreaker()
getLineBreaker in class Fontpublic void draw(DocumentWriter writer)
DocumentWriter object.
draw in class Resourcewriter - DocumentWriter object to receive the
TrueType font's output.DocumentWriterpublic int getGlyphWidth(char glyph)
getGlyphWidth in class Fontglyph - Glyph whose mwidth is to be returned.
public FontSubsetter getFontSubsetter()
getFontSubsetter in interface IFontSubsettableFontSubsetter object to use for the font.FontSubsetter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||