6#include "TTauri/Text/UnicodeRanges.hpp"
7#include "TTauri/Text/GlyphID.hpp"
8#include "TTauri/Text/FontWeight.hpp"
9#include "TTauri/Text/FontVariant.hpp"
10#include "TTauri/Foundation/exceptions.hpp"
11#include "TTauri/Foundation/required.hpp"
19 bool monospace =
false;
22 bool condensed =
false;
23 FontWeight weight = FontWeight::Regular;
24 float optical_size = 12.0;
32 [[nodiscard]]
FontVariant font_variant()
const noexcept {
33 return {weight, italic};
37 return fmt::format(
"{} - {}: {}{}{}{}{} {} {}",
40 rhs.monospace ?
'M' :
'_',
42 rhs.italic ?
'I':
'_',
43 rhs.condensed ?
'C':
'_',
51 return lhs << to_string(rhs);
Definition FontDescription.hpp:15
A font variant is one of 16 different fonts that can be part of a family.
Definition FontVariant.hpp:15
Unicode Ranges based on the OS/2 table in TrueType fonts.
Definition UnicodeRanges.hpp:13