1#ifndef LIBOSMSCOUT_TEXTLOADER_H
2#define LIBOSMSCOUT_TEXTLOADER_H
47 this->character = character;
55 this->texture = texture;
63 this->baselineY = baselineY;
71 this->height = height;
80 bool initialized =
false;
82 FT_Library ft=
nullptr;
90 std::map<std::pair<char32_t, int>,
int> characterIndices;
91 std::vector<osmscout::CharacterTextureRef> characters;
93 bool LoadFace(
const std::string &path,
double dpi);
97 TextLoader(
const std::string &path,
long defaultSize,
double dpi);
#define OSMSCOUT_MAP_OPENGL_API
Definition MapOpenGLImportExport.h:45
Definition TextLoader.h:34
void SetHeight(long height)
Definition TextLoader.h:70
void SetBaselineY(long baselineY)
Definition TextLoader.h:62
long GetHeight() const
Definition TextLoader.h:66
OpenGLTextureRef GetTexture() const
Definition TextLoader.h:50
char32_t GetCharacter() const
Definition TextLoader.h:42
long GetBaselineY() const
Definition TextLoader.h:58
void SetCharacter(char32_t character)
Definition TextLoader.h:46
void SetTexture(OpenGLTextureRef texture)
Definition TextLoader.h:54
void SetDefaultFontSize(long defaultFontSize)
bool IsInitialized() const
Definition TextLoader.h:101
long GetDefaultFontSize() const
TextLoader(const std::string &path, long defaultSize, double dpi)
OpenGLTextureRef CreateTexture()
int GetStartWidth(int index)
std::vector< int > AddCharactersToTextureAtlas(std::string text, double size)
size_t GetWidth(int index)
std::shared_ptr< OpenGLTexture > OpenGLTextureRef
Definition OpenGLMapData.h:67
std::shared_ptr< CharacterTexture > CharacterTextureRef
Definition TextLoader.h:76