Font class reference

  • int size() const
    Returns the size of the font in points.
  • void setSize(int size)
    Sets the size of the font in points.
  • bool italic() const
    Returns whether the font is italic.
  • void setItalic(bool italic = true)
    Turns on/off the italic font.
  • bool strikeOut() const
    Returns whether the font is strikeout.
  • void setStrikeOut(bool strikeOut = true)
    Turns on/off the strikeout font.
  • Color color() const
    Returns the color of the font.
  • void setColor(Color color)
    Sets the color of the font.
  • bool bold() const
    Returns whether the font is bold.
  • void setBold(bool bold = true)
    Turns on/off the bold font.
  • Script script() const
    Returns the script style of the font.
  • void setScript(Script script)
    Sets the script style of the font.
    Script valueView
    SCRIPT_NORMALTEXT SCRIPT_NORMAL
    SCRIPT_SUPERTEXTSCRIPT_SUPER
    SCRIPT_SUBTEXTSCRIPT_SUB
  • Underline underline() const
    Returns the underline style of the font.
  • void setUnderline(Underline underline)
    Sets the underline style of the font.
    Underline valueView
    UNDERLINE_NONEUNDERLINE_NONE
    UNDERLINE_SINGLEUNDERLINE_SINGLE
    UNDERLINE_DOUBLEUNDERLINE_DOUBLE
    UNDERLINE_SINGLEACCUNDERLINE_SINGLEACC
    UNDERLINE_DOUBLEACCUNDERLINE_DOUBLEACC
  • const wchar_t* name() const
    Returns the name of the font.
  • bool setName(const wchar_t* name)
    Sets the name of the font. Default name is "Arial".