HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends
v1::font_variant Class Reference

#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_variantset_weight (font_weight rhs) noexcept
 
constexpr font_variantset_style (font_style rhs) noexcept
 

Static Public Member Functions

static constexpr size_t size () noexcept
 

Friends

generator< font_variantalternatives (font_variant start) noexcept
 Get an alternative font variant.
 
std::string to_string (font_variant const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, font_variant const &rhs)
 

Detailed Description

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.

Friends And Related Symbol Documentation

◆ alternatives

generator< font_variant > alternatives ( font_variant start)
friend

Get an alternative font variant.

Parameters
startThe start of the alternative search for a font_variant.
Returns
Generated font-variants starting with start then zig-zag through weights, followed by zig-zag through styles.

The documentation for this class was generated from the following file: