# Uses of Class
com.evopdf.PdfFont

- ## Uses of PdfFont in com.evopdf

  Methods in com.evopdf that return PdfFont
  Modifier and Type
  Method
  Description
  `PdfFont`
  PdfFormAutoFieldStyle.`font()`
  Gets the PDF form fields font
  `PdfFont`
  PdfFormButton.`font()`
  Gets the PDF form button text font
  `PdfFont`
  PdfFormComboBox.`font()`
  Gets the font of the items in the list
  `PdfFont`
  PdfFormListBox.`font()`
  Gets the font of the items in the list
  `PdfFont`
  PdfFormTextBox.`font()`
  Gets the PDF form text box font
  `PdfFont`
  TextElement.`textFont()`
  Gets the font of the text rendered by this element in PDF
  Methods in com.evopdf with parameters of type PdfFont
  Modifier and Type
  Method
  Description
  `void`
  PdfFormAutoFieldStyle.`setFont(PdfFont pdfFont)`
  Sets the PDF form fields font
  `void`
  PdfFormButton.`setFont(PdfFont pdfFont)`
  Sets the PDF form button text font
  `void`
  PdfFormComboBox.`setFont(PdfFont pdfFont)`
  Sets the font of the items in the list
  `void`
  PdfFormListBox.`setFont(PdfFont pdfFont)`
  Sets the font of the items in the list
  `void`
  PdfFormTextBox.`setFont(PdfFont pdfFont)`
  Sets the PDF form text box font
  `void`
  TextElement.`setTextFont(PdfFont pdfFont)`
  Sets the font of the text rendered by this element in PDF
  Constructors in com.evopdf with parameters of type PdfFont
  Modifier
  Constructor
  Description
  ``
  `PdfFormButton(RectangleFloat box, String text, PdfFont pdfFont)`
  Constructs text box form field
  ``
  `PdfFormComboBox(RectangleFloat box, String[] items, PdfFont pdfFont)`
  Constructs a combo box form field
  ``
  `PdfFormListBox(RectangleFloat box, String[] items, PdfFont pdfFont)`
  Constructs a list box form field
  ``
  `PdfFormTextBox(RectangleFloat box, String text, PdfFont pdfFont)`
  Constructs a text box form field
  ``
  `TextElement(float x, float y, float width, float height, String text, PdfFont font)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified width, height and font.
  ``
  `TextElement(float x, float y, float width, float height, String text, PdfFont font, RgbColor textColor)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified width, height, font and color.
  ``
  `TextElement(float x, float y, float width, String text, PdfFont font)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified width and font.
  ``
  `TextElement(float x, float y, float width, String text, PdfFont font, RgbColor textColor)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified width, font and color.
  ``
  `TextElement(float x, float y, String text, PdfFont font)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified font.
  ``
  `TextElement(float x, float y, String text, PdfFont font, RgbColor textColor)`
  Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified font and color.