50 #ifndef SDLFONTPROVIDER_H_
51 #define SDLFONTPROVIDER_H_
53 #include "util/functions.h"
55 #include "system/compat/SystemCompat.h"
56 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
58 #include "mb/interface/IFontProvider.h"
59 #include "mb/interface/ISurface.h"
77 GingaScreenID myScreen;
89 static map<string, TTF_Font*> fonts;
90 static pthread_mutex_t ntsMutex;
91 static bool initNTSMutex;
93 static bool initialized;
94 static short fontRefs;
97 static const short A_LEFT;
98 static const short A_CENTER;
99 static const short A_RIGHT;
101 static const short A_TOP;
102 static const short A_TOP_CENTER;
103 static const short A_TOP_LEFT;
104 static const short A_TOP_RIGHT;
106 static const short A_BOTTOM;
107 static const short A_BOTTOM_CENTER;
108 static const short A_BOTTOM_LEFT;
109 static const short A_BOTTOM_RIGHT;
112 GingaScreenID screenId,
120 bool initializeFont();
124 string getLoadSymbol() {
return "SDLFontProvider";};
125 void* getFontProviderContent();
127 void getStringExtents(
const char* text,
int* w,
int* h);
128 int getStringWidth(
const char* text,
int textLength=0);
133 int x,
int y,
short align);
Definition: SDLFontProvider.h:75
Definition: ISurface.h:64
Definition: IFontProvider.h:62