Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8769 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_widget.cc


Ignore:
Timestamp:
Jun 24, 2006, 4:21:52 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Font in Button-Widget used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_widget.cc

    r8717 r8769  
    9898
    9999
    100     this->_font = NULL;
     100    this->_font = Font("/home/bensch/svn/orxonox/data/fonts/final_frontier.ttf", 20);
     101    this->_font.debug();
    101102    this->resetStyle();
    102103
     
    329330
    330331    this->setFeaturePosition(FeatureLeft);
    331     this->setFont(NULL);
    332332
    333333    this->setAnimatedStateChanges(true);
     
    726726   * @param font the Font.
    727727   */
    728   void GLGuiWidget::setFont(Font* font)
     728  void GLGuiWidget::setFont(const Font& font)
    729729  {
    730730    this->_font = font;
     
    735735   * @param fontName the FileName of the Font.
    736736   */
    737   void GLGuiWidget::setFont(const std::string& fontName)
    738   {
    739     //this->font = new Font(fontName);
     737  void GLGuiWidget::setFont(const std::string& fontName, unsigned int renderSize)
     738  {
     739    this->_font = Font(fontName, renderSize);
    740740  }
    741741
Note: See TracChangeset for help on using the changeset viewer.