1 #ifndef LIBOSMSCOUT_TEXTLOADER_H 2 #define LIBOSMSCOUT_TEXTLOADER_H 26 #include FT_FREETYPE_H 47 this->character = character;
55 this->texture = texture;
63 this->baselineY = baselineY;
71 this->height = height;
88 std::map<std::pair<char32_t, int>,
int> characterIndices;
89 std::vector<osmscout::CharacterTextureRef> characters;
93 void LoadFace(std::string);
99 TextLoader(std::string path,
long defaultSize);
104 size_t GetWidth(
int index);
109 int GetStartWidth(
int index);
119 long GetDefaultFontSize()
const;
124 void SetDefaultFontSize(
long defaultFontSize);
134 std::vector<int> AddCharactersToTextureAtlas(std::string text,
double size);
139 #endif //LIBOSMSCOUT_TEXTLOADER_H Definition: TextLoader.h:78
void SetTexture(OpenGLTextureRef texture)
Definition: TextLoader.h:54
OpenGLTextureRef GetTexture() const
Definition: TextLoader.h:50
#define OSMSCOUT_MAP_OPENGL_API
Definition: MapOpenGLImportExport.h:45
Definition: TextLoader.h:34
void SetHeight(long height)
Definition: TextLoader.h:70
char32_t GetCharacter() const
Definition: TextLoader.h:42
void SetBaselineY(long baselineY)
Definition: TextLoader.h:62
long GetBaselineY() const
Definition: TextLoader.h:58
std::shared_ptr< CharacterTexture > CharacterTextureRef
Definition: TextLoader.h:76
long GetHeight() const
Definition: TextLoader.h:66
void SetCharacter(char32_t character)
Definition: TextLoader.h:46
std::shared_ptr< OpenGLTexture > OpenGLTextureRef
Definition: OpenGLMapData.h:51