pdffontbase-ag凯发旗舰厅



com.spire.pdf.graphics
class pdffontbase

java.lang.object
  extended by com.spire.pdf.graphics.pdffontbase
all implemented interfaces:
ipdfwrapper
direct known subclasses:
pdfcjkstandardfont, pdffont, pdftruetypefont

public abstract class pdffontbase
extends java.lang.object
implements ipdfwrapper

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

pdffontbase

protected pdffontbase(float size)

pdffontbase

protected pdffontbase(float size,
                      java.util.enumset<pdffontstyle> style)
method detail

getname

public java.lang.string getname()
gets the name.

getsize

public float getsize()
gets the size.

getheight

public float getheight()
gets the height of the font in points.

getstyle

public java.util.enumset<pdffontstyle> getstyle()
gets the style information for this font.

getbold

public boolean getbold()
gets a value indicating whether this is bold.

getitalic

public boolean getitalic()
gets a value indicating whether this is italic.

getstrikeout

public boolean getstrikeout()
gets a value indicating whether this is strikeout.

getunderline

public boolean getunderline()
gets a value indicating whether this is underline.

measurestring

public java.awt.geom.dimension2d measurestring(java.lang.string text)
measures a string by using this font.
parameters:
text - text to be measured.
returns:
size of the text.

measurestring

public java.awt.geom.dimension2d measurestring(java.lang.string text,
                                               pdfstringformat format)
measures a string by using this font.
parameters:
text - text to be measured.
format - pdfstringformat that represents formatting information, such as line spacing, for the string.
returns:
size of the text.

measurestring

public java.awt.geom.dimension2d measurestring(java.lang.string text,
                                               double width)
measures a string by using this font.
parameters:
text - text to be measured.
width - maximum width of the string in points.
returns:
size of the text.

measurestring

public java.awt.geom.dimension2d measurestring(java.lang.string text,
                                               double width,
                                               pdfstringformat format)
measures a string by using this font.
parameters:
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.
returns:
size of the text.

measurestring

public java.awt.geom.dimension2d measurestring(java.lang.string text,
                                               double width,
                                               pdfstringformat format,
                                               int[] charactersfitted,
                                               int[] linesfilled)
measures a string by using this font.
parameters:
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.
returns:
size of the text.


网站地图