1 #ifndef BLANK_GRAPHICS_FONT_HPP_
2 #define BLANK_GRAPHICS_FONT_HPP_
16 STYLE_NORMAL = TTF_STYLE_NORMAL,
17 STYLE_BOLD = TTF_STYLE_BOLD,
18 STYLE_ITALIC = TTF_STYLE_ITALIC,
19 STYLE_UNDERLINE = TTF_STYLE_UNDERLINE,
20 STYLE_STRIKE = TTF_STYLE_STRIKETHROUGH,
23 HINT_NORMAL = TTF_HINTING_NORMAL,
24 HINT_LIGHT = TTF_HINTING_LIGHT,
25 HINT_MONO = TTF_HINTING_MONO,
26 HINT_NONE = TTF_HINTING_NONE,
30 Font(const char *src, int size, long index = 0);
33 Font(Font &&) noexcept;
34 Font &operator =(Font &&) noexcept;
36 Font(const Font &) = delete;
37 Font &operator =(const Font &) = delete;
40 int Style() const noexcept;
41 void Style(int) const noexcept;
42 int Outline() const noexcept;
43 void Outline(int) noexcept;
45 int Hinting() const noexcept;
46 void Hinting(int) const noexcept;
47 bool Kerning() const noexcept;
48 void Kerning(bool) noexcept;
50 int Height() const noexcept;
51 int Ascent() const noexcept;
52 int Descent() const noexcept;
53 int LineSkip() const noexcept;
55 const char *FamilyName() const noexcept;
56 const char *StyleName() const noexcept;
58 bool HasGlyph(Uint16) const noexcept;
60 glm::ivec2 TextSize(const char *) const;
62 Texture Render(const char *) const;
63 void Render(const char *, Texture &) const;