Aether
SDL2 based UI Framework for NX
GlyphMetrics.hpp
1 #ifndef AETHER_FONTMETRICS_HPP
2 #define AETHER_FONTMETRICS_HPP
3 
4 #include <cstdint>
5 
6 namespace Aether {
11  class GlyphMetrics {
12  private:
13  uint16_t ch_;
14  int width_;
15  int height_;
16  int lineHeight_;
18  public:
22  GlyphMetrics();
23 
32  GlyphMetrics(const uint16_t ch, const int width, const int height, const int lineHeight);
33 
39  uint16_t character();
40 
46  int width();
47 
53  int height();
54 
60  int lineHeight();
61  };
62 };
63 
64 #endif
int lineHeight()
Return the recommend line height for the glyph.
uint16_t character()
Returns character referenced by metrics.
GlyphMetrics()
Recommended height of a line containing the glyph.
Base namespace for all Aether related classes and functions.
Class storing metrics for a font&#39;s character. Designed to be read-only as it is only able to return v...
Definition: GlyphMetrics.hpp:11
int height()
Return the height of the glyph.
int width()
Return the width of the glyph.