Changeset 8757 in orxonox.OLD for branches/fontdata
- Timestamp:
- Jun 23, 2006, 8:41:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fontdata/src/lib/graphics/text_engine/font.cc
r8756 r8757 33 33 : data(Font::defaultFontData) 34 34 { 35 printf("Font()\n");36 35 this->init(); 37 36 … … 46 45 : data(Font::defaultFontData) 47 46 { 48 printf("Font(const std::string& fontFile, unsigned int renderSize)\n");49 47 this->init(); 50 51 assert(data.get() != NULL);52 53 this->setStyle("c");54 48 55 49 if (!fontFile.empty()) … … 64 58 : data(Font::defaultFontData) 65 59 { 66 printf("Font(const std::string& imageFile)\n");67 60 this->init(); 68 61 … … 90 83 : data(Font::defaultFontData) 91 84 { 92 printf("Font(char** xpmArray)\n");93 94 85 this->init(); 95 86 this->setName("XPM-array-font"); … … 156 147 this->setName(fontFile); 157 148 this->data->fontTTF = TTF_OpenFont(fontFile.c_str(), renderSize); 149 this->data->renderSize = renderSize; 158 150 159 151 if(this->data->fontTTF != NULL) 160 152 { 153 this->setStyle("c"); 161 154 this->createFastTexture(); 162 155 if (this->getTexture() != 0)
Note: See TracChangeset
for help on using the changeset viewer.