56 bool loadFromFile(std::filesystem::path
const& filePath);
57 bool loadFromMemory(
void const* data, std::size_t size);
59 Info const& getInfo()
const;
62 getGlyph(uint32_t codePoint, fge::CharacterSize characterSize,
bool bold,
float outlineThickness = 0)
const;
63 bool hasGlyph(uint32_t codePoint)
const;
65 float getKerning(uint32_t first, uint32_t second, fge::CharacterSize characterSize,
bool bold =
false)
const;
66 float getLineSpacing(fge::CharacterSize characterSize)
const;
67 float getUnderlinePosition(fge::CharacterSize characterSize)
const;
68 float getUnderlineThickness(fge::CharacterSize characterSize)
const;
72 void setSmooth(
bool smooth);
73 bool isSmooth()
const;
75 [[nodiscard]] std::vector<long> getAvailableSize()
const;
80 Row(
unsigned int rowTop,
unsigned int rowHeight) :
91 using GlyphTable = std::unordered_map<uint64_t, Glyph>;
95 explicit Page(
bool smooth);
99 unsigned int _nextRow;
100 std::vector<Row> _rows;
104 std::unordered_map<fge::CharacterSize, Page>;
108 Page& loadPage(fge::CharacterSize characterSize)
const;
109 Glyph loadGlyph(uint32_t codePoint, fge::CharacterSize characterSize,
bool bold,
float outlineThickness)
const;
111 fge::RectInt findGlyphRect(Page& page,
unsigned int width,
unsigned int height)
const;
113 bool setCurrentSize(fge::CharacterSize characterSize)
const;
120 mutable PageTable g_pages;
Definition C_textureImage.hpp:34