Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2005, 4:30:59 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: little patch, so now 'space' works too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc

    r3775 r3776  
    426426{
    427427  /* interesting GLYPHS:
     428   *  32: space
    428429   *  33-47: Special Characters.
    429430   *  48-57: 0-9
     
    432433   *  97-122: a-z
    433434   */
    434   int numberOfGlyphs = 90;
    435 
    436   this->initGlyphs(33, numberOfGlyphs);
     435  int numberOfGlyphs = 91;
     436
     437  this->initGlyphs(32, numberOfGlyphs);
     438  this->glyphArray[32]->width = fontSize/3; //!< \todo find out the real size of a Space
    437439
    438440  int rectSize = this->findOptimalFastTextureSize();
     
    462464
    463465  // all the interessting Glyphs
    464   for (int i = 33; i <= 122; i++)
     466  for (int i = 32; i <= 122; i++)
    465467    {
    466468      SDL_Surface* glyphSurf = NULL;
     
    528530        }
    529531    }
     532
    530533  GLuint texture;
    531534  glGenTextures(1, &texture);
Note: See TracChangeset for help on using the changeset viewer.