|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.pdf.graphics.pdffontbase
public abstract class pdffontbase
represents the font.
constructor summary | |
---|---|
protected |
pdffontbase(float size)
|
protected |
pdffontbase(float size,
java.util.enumset<pdffontstyle> style)
|
method summary | |
---|---|
boolean |
getbold()
gets a value indicating whether this is bold. |
float |
getheight()
gets the height of the font in points. |
boolean |
getitalic()
gets a value indicating whether this is italic. |
java.lang.string |
getname()
gets the name. |
float |
getsize()
gets the size. |
boolean |
getstrikeout()
gets a value indicating whether this is strikeout. |
java.util.enumset<pdffontstyle> |
getstyle()
gets the style information for this font. |
boolean |
getunderline()
gets a value indicating whether this is underline. |
java.awt.geom.dimension2d |
measurestring(java.lang.string text)
measures a string by using this font. |
java.awt.geom.dimension2d |
measurestring(java.lang.string text,
double width)
measures a string by using this font. |
java.awt.geom.dimension2d |
measurestring(java.lang.string text,
double width,
pdfstringformat format)
measures a string by using this font. |
java.awt.geom.dimension2d |
measurestring(java.lang.string text,
double width,
pdfstringformat format,
int[] charactersfitted,
int[] linesfilled)
measures a string by using this font. |
java.awt.geom.dimension2d |
measurestring(java.lang.string text,
pdfstringformat format)
measures a string by using this font. |
constructor detail |
---|
protected pdffontbase(float size)
protected pdffontbase(float size, java.util.enumset<pdffontstyle> style)
method detail |
---|
public java.lang.string getname()
public float getsize()
public float getheight()
public java.util.enumset<pdffontstyle> getstyle()
public boolean getbold()
public boolean getitalic()
public boolean getstrikeout()
public boolean getunderline()
public java.awt.geom.dimension2d measurestring(java.lang.string text)
text
- text to be measured.
public java.awt.geom.dimension2d measurestring(java.lang.string text, pdfstringformat format)
text
- text to be measured.format
- pdfstringformat that represents formatting information, such as line spacing, for the string.
public java.awt.geom.dimension2d measurestring(java.lang.string text, double width)
text
- text to be measured.width
- maximum width of the string in points.
public java.awt.geom.dimension2d measurestring(java.lang.string text, double width, pdfstringformat format)
text
- text to be measured.width
- maximum width of the string in points.format
- pdfstringformat that represents formatting information, such as line spacing, for the string.
public java.awt.geom.dimension2d measurestring(java.lang.string text, double width, pdfstringformat format, int[] charactersfitted, int[] linesfilled)
text
- text to be measured.width
- maximum width of the string in points.format
- pdfstringformat that represents formatting information, such as line spacing, for the string.charactersfitted
- number of characters in the string.linesfilled
- number of text lines in the string.
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |