Font Descriptor meant to be used with AssetManager only.
More...
#include <Font.hpp>
|
| constexpr | Descriptor (std::string name, std::filesystem::path fontPath, std::vector< CharsetRange > charsetRanges, const float minimalScale=48.0f, const float miterLimit=1.0f) |
| | Constructs a descriptor.
|
| uint32_t | GetRuntimeID () const |
| constexpr bool | operator== (const Descriptor &other) const |
Font Descriptor meant to be used with AssetManager only.
Definition at line 42 of file Font.hpp.
◆ AssetType
◆ Descriptor()
| Cori::Graphics::Font::Descriptor::Descriptor |
( |
std::string | name, |
|
|
std::filesystem::path | fontPath, |
|
|
std::vector< CharsetRange > | charsetRanges, |
|
|
const float | minimalScale = 48.0f, |
|
|
const float | miterLimit = 1.0f ) |
|
inlineconstexpr |
Constructs a descriptor.
- Parameters
-
| name | Name to be used in AssetManager logging. |
| fontPath | Path to the font file. |
| charsetRanges | An vector with CharsetRanges to be loaded from the font. |
| minimalScale | Minimal glyph scale, the higher the value, the slower generation time, higher memory usage, but smoother glyphs when using high font size. Default is a good middle-ground, increase only if your glyphs looks choppy or have slight imperfections. |
| miterLimit | You shouldn't touch this, the default is good, but you can try to increase it in case you see some significant artifacts. |
Definition at line 52 of file Font.hpp.
◆ GetRuntimeID()
| uint32_t Cori::Graphics::Font::Descriptor::GetRuntimeID |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator==()
| bool Cori::Graphics::Font::Descriptor::operator== |
( |
const Descriptor & | other | ) |
const |
|
inlineconstexpr |
◆ m_CharsetRanges
| const std::vector<CharsetRange> Cori::Graphics::Font::Descriptor::m_CharsetRanges |
◆ m_FontPath
| const std::filesystem::path Cori::Graphics::Font::Descriptor::m_FontPath |
◆ m_MinimalScale
| const float Cori::Graphics::Font::Descriptor::m_MinimalScale |
◆ m_MiterLimit
| const float Cori::Graphics::Font::Descriptor::m_MiterLimit |
◆ m_Name
| const std::string Cori::Graphics::Font::Descriptor::m_Name |
The documentation for this class was generated from the following file: