Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2006, 3:12:14 AM (19 years ago)
Author:
bensch
Message:

load-implementation of font in font-data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/font_data.h

    r8761 r8764  
    5555
    5656
     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
    5765  /** @returns a Pointer to the Array of Glyphs */
    5866  inline Glyph** getGlyphArray() const { return this->glyphArray; };
     
    6068  inline TTF_Font* getTTF() const { return this->fontTTF; };
    6169
     70  int getMaxHeight() const;
     71  int getMaxAscent() const;
     72  int getMaxDescent() const;
     73
     74
    6275  bool rebuild();
     76
     77
     78
    6379
    6480
    6581private:
    6682  FontData();
     83
     84  void initGlyphs(Uint16 from, Uint16 count);
     85  bool getGlyphMetrics(Glyph* glyph, Uint16 character);
     86
     87  int findOptimalFastTextureSize();
     88  bool createFastTexture();
    6789
    6890private:
Note: See TracChangeset for help on using the changeset viewer.