68 #ifndef GUI_FONTS_FONT_H
69 #define GUI_FONTS_FONT_H
74 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
78 #include "localconsts.h"
92 Font(std::string filename,
156 extern int textChunkCnt;
const TextChunkList * getCache() const A_CONST
void slowLogic(const int rnd)
void loadFont(std::string filename, const int size, const int style)
unsigned int mDeleteCounter
unsigned int getCreateCounter() const
unsigned int mCreateCounter
void generate(TextChunk &chunk)
int getStringIndexAt(const std::string &text, const int x) const
void insertChunk(TextChunk *const chunk)
Font(std::string filename, int size, const int style)
int getWidth(const std::string &text) const
unsigned int getDeleteCounter() const
TextChunkList mCache[CACHES_NUMBER]
static TTF_Font * openFont(const char *const name, const int size)
void drawString(Graphics *const graphics, Color col, const Color &col2, const std::string &text, const int x, const int y)
const unsigned int CACHES_NUMBER
#define A_DELETE_COPY(func)