HikoGUI
A low latency retained GUI
|
#include <hikogui/font/font_variant.hpp>
Public Member Functions | |
constexpr | font_variant (font_weight weight, font_style style) noexcept |
constexpr | font_variant (font_weight weight) noexcept |
constexpr | font_variant (font_style style) noexcept |
constexpr | operator size_t () const noexcept |
size_t | hash () const noexcept |
constexpr font_weight | weight () const noexcept |
constexpr font_style | style () const noexcept |
constexpr font_variant & | set_weight (font_weight rhs) noexcept |
constexpr font_variant & | set_style (font_style rhs) noexcept |
Static Public Member Functions | |
static constexpr size_t | size () noexcept |
Friends | |
generator< font_variant > | alternatives (font_variant start) noexcept |
Get an alternative font variant. | |
std::string | to_string (font_variant const &rhs) noexcept |
std::ostream & | operator<< (std::ostream &lhs, font_variant const &rhs) |
A font variant is one of 16 different fonts that can be part of a family.
It only contains the font-weight and if it is italic/oblique.
monospace, serif, condensed, expanded & optical-size are all part of the font family.
|
friend |
Get an alternative font variant.
start | The start of the alternative search for a font_variant. |