7namespace hi::inline
v1 {
56 ~font_metrics() =
default;
57 constexpr font_metrics() noexcept = default;
58 constexpr font_metrics(font_metrics const&) noexcept = default;
59 constexpr font_metrics(font_metrics&&) noexcept = default;
60 constexpr font_metrics& operator=(font_metrics const&) noexcept = default;
61 constexpr font_metrics& operator=(font_metrics&&) noexcept = default;
62 [[nodiscard]] constexpr friend
bool operator==(font_metrics const&, font_metrics const&) noexcept = default;
66 [[nodiscard]] constexpr friend font_metrics operator*(
float const& lhs, font_metrics const& rhs) noexcept
DOXYGEN BUG.
Definition algorithm.hpp:13
The metrics of a font.
Definition font_metrics.hpp:15
float descender
Distance from baseline of lowest descender.
Definition font_metrics.hpp:24
float line_gap
Distance between lines.
Definition font_metrics.hpp:30
float ascender
Distance from baseline of highest ascender.
Definition font_metrics.hpp:18
float round_scale(float size) const noexcept
Round a scale so that the scaled x-height is an integral.
Definition font_metrics.hpp:92
float x_height
Height of lower case characters without ascenders or descenders, or the small letter 'x'.
Definition font_metrics.hpp:38
float paragraph_spacing
The multiplier for the space between two paragraphs.
Definition font_metrics.hpp:54
float cap_height
Height of capital letter, or height of the letter 'H'.
Definition font_metrics.hpp:34
float digit_advance
The advance for digits, specifically the digit '8'.
Definition font_metrics.hpp:44
float line_spacing
The multiplier for the space between lines of the same paragraph.
Definition font_metrics.hpp:49