34#include <NDEVR/File.h>
35#include <NDEVR/RGBColor.h>
36#include <NDEVR/Dictionary.h>
Definition Dictionary.h:48
static NDEVR_BASE_API void SetApplicationFont(const String &app_font, const Font &font)
Definition Font.cpp:195
static NDEVR_BASE_API File FindBestFitFontFile(const Font &font)
Definition Font.cpp:39
static NDEVR_BASE_API void ReadFontSettings()
Definition Font.cpp:119
static NDEVR_BASE_API const Font & ApplicationFont(const String &app_font)
Definition Font.cpp:209
static NDEVR_BASE_API void AddFontListener(const String &app_font, UUID id, std::function< void(const String &)> callback)
Definition Font.cpp:133
static NDEVR_BASE_API Dictionary< String, Font > s_application_fonts
Definition Font.h:83
static NDEVR_BASE_API Dictionary< String, uint04 > s_font_indices
Definition Font.h:85
static NDEVR_BASE_API File TryFontName(const String &family)
Definition Font.cpp:147
static NDEVR_BASE_API void PullFontFromFolder(const File &folder)
Definition Font.cpp:67
static NDEVR_BASE_API void SetFontFile(const String &font_name, const File &file, uint04 index=0)
Definition Font.cpp:91
static NDEVR_BASE_API void SetSettingsFile(const File &file)
Definition Font.cpp:97
static NDEVR_BASE_API void RemoveFontListener(const String &app_font, UUID id)
Definition Font.cpp:138
static NDEVR_BASE_API void SaveFontSettings()
Definition Font.cpp:103
static NDEVR_BASE_API File s_settings_file
Definition Font.h:87
static NDEVR_BASE_API Dictionary< String, String > s_font_files
Definition Font.h:84
static constexpr char DefaultFont[8]
Definition Font.h:66
static NDEVR_BASE_API Dictionary< String, Dictionary< UUID, std::function< void(const String &)> > > s_app_font_listener
Definition Font.h:86
static NDEVR_BASE_API bool HasApplicationFont(const String &app_font)
Definition Font.cpp:216
static NDEVR_BASE_API bool HasFontFile(const String &font_name)
Definition Font.cpp:86
static NDEVR_BASE_API Dictionary< String, Font > s_system_fonts
Definition Font.h:82
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
TextAlignment
Definition Font.h:104
uint01 operator|(const TextAlignment &a, const TextAlignment &b)
Definition Font.h:115
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:514
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition BaseValues.hpp:272
NDEVR_BASE_API bool operator==(const Font &font) const
Definition Font.cpp:7
bool is_bold
Definition Font.h:51
fltp08 point_size
Definition Font.h:44
RGBColor color
Definition Font.h:49
bool is_strikethrough
Definition Font.h:55
bool is_italic
Definition Font.h:52
fltp08 pixel_size
Definition Font.h:45
String name
Definition Font.h:42
uint01 alignment
Definition Font.h:50
NDEVR_BASE_API bool operator!=(const Font &font) const
Definition Font.cpp:20
void setFile(const File &file)
Definition Font.h:59
File m_file
Definition Font.h:61
bool is_underline
Definition Font.h:53
uint04 index
Definition Font.h:48
NDEVR_BASE_API File getFile() const
Definition Font.cpp:33
String app_font_name
Definition Font.h:43
bool is_overstrike
Definition Font.h:54
fltp08 fixed_width
Definition Font.h:46
fltp08 tab_advance
Definition Font.h:47
Font font
Definition Font.h:92
bool operator!=(const TextBlock &block) const
Definition Font.h:97
bool operator==(const TextBlock &block) const
Definition Font.h:93
String text
Definition Font.h:91