Font: moving text size from font to Text object.
This commit is contained in:
parent
c74dda1200
commit
b2dbee33fb
5 changed files with 31 additions and 16 deletions
|
|
@ -35,9 +35,9 @@ public :
|
|||
Font();
|
||||
~Font();
|
||||
|
||||
bool loadFromFile(const std::string& filename, unsigned int size = 22);
|
||||
bool loadFromFile(const std::string& filename);
|
||||
|
||||
bool loadFromMemory(const void *data, unsigned int size);
|
||||
bool loadFromMemory(const void *data);
|
||||
|
||||
Glyph getGlyph(unsigned int code) const;
|
||||
|
||||
|
|
@ -67,8 +67,6 @@ protected :
|
|||
|
||||
mutable std::map<unsigned char, Glyph> m_charset;
|
||||
|
||||
unsigned int m_size; // font size, in pixels. not points.
|
||||
|
||||
// Alpha Cache texture.
|
||||
mutable CacheTexture m_cacheTextureA;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue