8#ifndef ENGINE_GRAPHICS_GBITMAPFONT_H_
9#define ENGINE_GRAPHICS_GBITMAPFONT_H_
16#include <unordered_map>
22 bool load(
const std::string& fullPath);
42 bool setCharacters(
const std::string& characters,
const std::vector<gRect>& coordinates);
45 void drawText(
const std::string& text,
float x,
float y);
62 std::vector<std::uint32_t> characterlist;
63 std::vector<gRect> coordinatelist;
64 std::unordered_map<std::uint32_t, gRect> glyphs;
66 float letterspacing = 0.0f;
67 float lineheight = 0.0f;
68 float calculatedlineheight = 0.0f;
70 bool configured =
false;
Definition gBitmapFont.h:19
void setLineHeight(float height)
bool loadImage(const std::string &imagePath)
bool setCharacters(const std::string &characters, const std::vector< gRect > &coordinates)
float getLineHeight() const
int getCharacterCount() const
float getLetterSpacing() const
void setLetterSpacing(float spacing)
bool load(const std::string &fullPath)
void setCharacterCoordinates(const std::vector< gRect > &coordinates)
void drawText(const std::string &text, float x, float y)
bool isConfigured() const
void setScale(float scale)
void setCharacterList(const std::string &characters)
bool loadFontImage(const std::string &imagePath)
void setCharacters(const std::string &characters)