14#include "AUI/Enum/ATextAlign.h"
16#include "AUI/Platform/AFontManager.h"
17#include "AUI/Render/FontRendering.h"
18#include "AUI/Common/AColor.h"
25 mutable _<AFont> font = AFontManager::inst().getDefaultFont();
27 bool formatting =
false;
33 float lineSpacing = 0.5f;
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;
Represents a Unicode character string.
Definition: AString.h:37
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177
ATextAlign
Controls the text alignment inside AView.
Definition: ATextAlign.h:20
FontRendering
Controls the expanding of AView.
Definition: FontRendering.h:22
Definition: AFontStyle.h:24