|
OpenTTD Source 20261112-master-gbcbec5e63f
|
Container with information about a font. More...
#include <gfx_layout.h>
Public Member Functions | |
| constexpr auto | operator<=> (const Font &) const =default |
| Compare with another instance of this class. | |
| FontCache & | GetFontCache () const |
| Get the font cache of this font. | |
Data Fields | |
| FontSize | fontsize = FontSize::End |
| The font size. | |
| ExtendedTextColour | colour = TextColour::Invalid |
| The text colour. | |
Container with information about a font.
Definition at line 21 of file gfx_layout.h.
|
inline |
Get the font cache of this font.
Definition at line 36 of file gfx_layout.h.
References FontCache::Get().
Referenced by DrawLayoutLine(), CoreTextParagraphLayout::CoreTextVisualRun::GetLeading(), FallbackParagraphLayout::FallbackVisualRun::GetLeading(), ICUParagraphLayout::ICUVisualRun::GetLeading(), UniscribeParagraphLayout::UniscribeVisualRun::GetLeading(), HFontFromFont(), and UniscribeShapeRun().
|
constexprdefault |
Compare with another instance of this class.
| ExtendedTextColour Font::colour = TextColour::Invalid |
The text colour.
Definition at line 24 of file gfx_layout.h.
Referenced by DrawLayoutLine(), FontState::FontState(), FontState::PushColour(), and FontState::SetColour().
| FontSize Font::fontsize = FontSize::End |
The font size.
Definition at line 23 of file gfx_layout.h.
Referenced by DrawLayoutLine(), FontState::FontState(), FontState::SetFontSize(), and UniscribeShapeRun().