26 lines
475 B
C++
26 lines
475 B
C++
#ifndef SDLPP_HPP_FONT
|
|
#define SDLPP_HPP_FONT
|
|
|
|
#include "sdlpp_common.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
namespace SDLPP {
|
|
class Font {
|
|
public:
|
|
Font() = delete;
|
|
Font( const std::string &font, int size );
|
|
virtual ~Font();
|
|
const TTF_Font *getFont() const;
|
|
TTF_Font *getFont();
|
|
void setOutline( int size );
|
|
int getOutline();
|
|
void setStyle( int style );
|
|
void setHinting( int hinting );
|
|
|
|
private:
|
|
TTF_Font *font_ptr;
|
|
};
|
|
} // namespace SDLPP
|
|
#endif
|