#ifndef FONT_H_C80183A7 #define FONT_H_C80183A7 #include #include #include "vector.h" class Renderer; class Font { public: Font(std::string_view filename, Renderer& renderer); int getTextureId() const { return textureId_; } vec2i getCharacterLocation(char ch) const; vec2i getCharacterSize(char ch) const; int getCharacterWidth(char ch) const; int getCharacterHeight() const { return tileSize_.h(); } private: int textureId_; int columns_; vec2i tileSize_; std::vector widths_; }; #endif /* end of include guard: FONT_H_C80183A7 */