Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Wt FAQ: how to set a font's size?

 

struct WtDialog : public Wt::WContainerWidget
{
  WtDialog()
  {
    Wt::WText * const title = new Wt::WText("TicTacToe");
    Wt::WCssDecorationStyle s;
    Wt::WFont f;
    f.setSize(Wt::WFont::XXLarge);
    s.setFont(f);
    title->setDecorationStyle(s);
    this->addWidget(title);
  }
};

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict