Changeset 8764 in orxonox.OLD for trunk/src/lib/graphics/text_engine/font_data.h
- Timestamp:
- Jun 24, 2006, 3:12:14 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font_data.h
r8761 r8764 55 55 56 56 57 /// LOADING new Fonts 58 bool loadFontFromTTF(const std::string& fontFile, unsigned int renderSize); 59 bool loadFontFromSDL_Surface(SDL_Surface* surface); 60 61 void setStyle(const std::string& renderStyle); 62 63 64 57 65 /** @returns a Pointer to the Array of Glyphs */ 58 66 inline Glyph** getGlyphArray() const { return this->glyphArray; }; … … 60 68 inline TTF_Font* getTTF() const { return this->fontTTF; }; 61 69 70 int getMaxHeight() const; 71 int getMaxAscent() const; 72 int getMaxDescent() const; 73 74 62 75 bool rebuild(); 76 77 78 63 79 64 80 65 81 private: 66 82 FontData(); 83 84 void initGlyphs(Uint16 from, Uint16 count); 85 bool getGlyphMetrics(Glyph* glyph, Uint16 character); 86 87 int findOptimalFastTextureSize(); 88 bool createFastTexture(); 67 89 68 90 private:
Note: See TracChangeset
for help on using the changeset viewer.