SDLPP: allow change of font size
This commit is contained in:
@@ -9,6 +9,7 @@ namespace SDLPP {
|
||||
class SDLPPSCOPE Font {
|
||||
public:
|
||||
Font() = delete;
|
||||
Font( const std::string &font );
|
||||
Font( const std::string &font, int size );
|
||||
virtual ~Font();
|
||||
const TTF_Font *getFont() const;
|
||||
@@ -17,9 +18,16 @@ public:
|
||||
int getOutline();
|
||||
void setStyle( int style );
|
||||
void setHinting( int hinting );
|
||||
void changeFontSize( int size );
|
||||
void revertSize();
|
||||
|
||||
private:
|
||||
void closeFont();
|
||||
void checkFont();
|
||||
|
||||
TTF_Font *font_ptr;
|
||||
const std::string font_path;
|
||||
int original_size = -1;
|
||||
};
|
||||
} // namespace SDLPP
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user