7#include "unicode_ranges.hpp"
9#include "font_weight.hpp"
10#include "font_variant.hpp"
11#include "../exception.hpp"
12#include "../required.hpp"
20 bool monospace =
false;
23 bool condensed =
false;
24 font_weight weight = font_weight::Regular;
25 float optical_size = 12.0;
31 float DigitWidth = 0.0;
34 return {weight, italic};
38 return fmt::format(
"{} - {}: {}{}{}{}{} {} {}",
41 rhs.monospace ?
'M' :
'_',
43 rhs.italic ?
'I':
'_',
44 rhs.condensed ?
'C':
'_',
52 return lhs << to_string(rhs);
Definition font_description.hpp:16
A font variant is one of 16 different fonts that can be part of a family.
Definition font_variant.hpp:16
Unicode Ranges based on the OS/2 table in TrueType fonts.
Definition unicode_ranges.hpp:15