| 
 | |||||||||
| 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 | ||||||||