25 mutable _<AFont> font = AFontManager::inst().getDefaultFont();
27 bool formatting =
false;
33 float lineSpacing = 0.5f;
36 size_t getWidth(
const AString& text)
const;
38 template<
class Iterator>
39 size_t getWidth(Iterator begin, Iterator end)
const {
40 return font->length(*
this, std::move(begin), std::move(end));
44 return font->getCharacter(getFontEntry(), c);
48 size_t getSpaceWidth()
const {
49 return font->getSpaceWidth(size);
52 size_t getLineHeight()
const;
54 AFont::FontEntry getFontEntry()
const {
55 return font->getFontEntry({size, fontRendering});
58 operator AFont::FontEntry()
const {
59 return getFontEntry();
62 bool operator==(
const AFontStyle&)
const noexcept =
default;
63 bool operator!=(
const AFontStyle&)
const noexcept =
default;