|
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(byte[] bytes)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
|
TrueTypeFont(byte[] bytes,
LineBreaker lineBreaker)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
|
TrueTypeFont(java.lang.String filePath)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
|
TrueTypeFont(java.lang.String filePath,
LineBreaker lineBreaker)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
|
| Method Summary | |
void |
draw(DocumentWriter writer)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
short |
getAscender()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
short |
getDescender()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
boolean |
getEmbed()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
FontSubsetter |
getFontSubsetter()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
int |
getGlyphWidth(char glyph)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
float |
getKernValue(char left,
char right)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
LineBreaker |
getLineBreaker()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
short |
getLineGap()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
java.lang.String |
getName()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
int |
getRequiredPdfObjects()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
boolean |
hasKerning()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
void |
setEmbed(boolean value)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont |
| 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(byte[] bytes)
TrueTypeFont class.
bytes - TrueType font byte array.
public TrueTypeFont(byte[] bytes,
LineBreaker lineBreaker)
TrueTypeFont class.
bytes - TrueType font file byte array.lineBreaker - Line breaker to use for the TrueType font.LineBreaker
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)
value - The value indicating if the font should be embedded.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.FontSubsetterpublic boolean hasKerning()
hasKerning in class Font
public float getKernValue(char left,
char right)
getKernValue in class Fontleft - Left glyph.right - Right glyph.
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||