RichString class reference

  • Font* addFont(Font* initFont = 0)
    Adds a new font to the RichString for using with the RichString::addText() method, initial parameters can be copied from other font.
  • void addText(const wchar_t* text, Font* font = 0)
    Adds a piece of text (run) with the specified font to the RichString for mixing different fonts in a single cell.
  • const wchar_t* getText(int index, Font** font = 0)
    Returns a piece of text (run) and font with the specified index from the RichString.
  • int textSize() const
    Returns a number of text (run) in the RichString.