1 #ifndef BLANK_GRAPHICS_FONT_HPP_
2 #define BLANK_GRAPHICS_FONT_HPP_
17 STYLE_NORMAL = TTF_STYLE_NORMAL,
18 STYLE_BOLD = TTF_STYLE_BOLD,
19 STYLE_ITALIC = TTF_STYLE_ITALIC,
20 STYLE_UNDERLINE = TTF_STYLE_UNDERLINE,
21 STYLE_STRIKE = TTF_STYLE_STRIKETHROUGH,
24 HINT_NORMAL = TTF_HINTING_NORMAL,
25 HINT_LIGHT = TTF_HINTING_LIGHT,
26 HINT_MONO = TTF_HINTING_MONO,
27 HINT_NONE = TTF_HINTING_NONE,
31 Font(const char *src, int size, long index = 0);
34 Font(Font &&) noexcept;
35 Font &operator =(Font &&) noexcept;
37 Font(const Font &) = delete;
38 Font &operator =(const Font &) = delete;
41 int Style() const noexcept;
42 void Style(int) const noexcept;
43 int Outline() const noexcept;
44 void Outline(int) noexcept;
46 int Hinting() const noexcept;
47 void Hinting(int) const noexcept;
48 bool Kerning() const noexcept;
49 void Kerning(bool) noexcept;
51 int Height() const noexcept;
52 int Ascent() const noexcept;
53 int Descent() const noexcept;
54 int LineSkip() const noexcept;
56 const char *FamilyName() const noexcept;
57 const char *StyleName() const noexcept;
59 bool HasGlyph(Uint16) const noexcept;
61 glm::ivec2 TextSize(const char *) const;
63 Texture Render(const char *) const;
64 void Render(const char *, Texture &) const;