|
HikoGUI
A low latency retained GUI
|
#include <hikogui/text/font_variant.hpp>
Public Member Functions | |
| constexpr | font_variant (font_weight weight, bool italic) noexcept |
| constexpr | font_variant (font_weight weight) noexcept |
| constexpr | font_variant (bool italic) noexcept |
| size_t | hash () const noexcept |
| constexpr font_weight | weight () const noexcept |
| constexpr bool | italic () const noexcept |
| constexpr font_variant & | set_weight (font_weight rhs) noexcept |
| constexpr font_variant & | set_italic (bool rhs) noexcept |
| constexpr | operator int () const noexcept |
| constexpr font_variant | alternative (int i) const noexcept |
| Get an alternative font variant. | |
Static Public Member Functions | |
| static constexpr int | max () |
| static constexpr int | half () |
Friends | |
| 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.
|
inlineconstexprnoexcept |
Get an alternative font variant.
| i | 0 is current value, 1 is best alternative, 15 is worst alternative. |