Graphics::Font Class Referenceabstract
Base class for a loaded font. More...
#include <Asset.h>
Inheritance diagram for Graphics::Font:
Collaboration diagram for Graphics::Font:
Public Member Functions | |
virtual String | name () const =0 |
virtual uint16_t | height () const =0 |
virtual const TypeFace * | getFace (FontStyles style) const =0 |
void | write (MetaWriter &meta) const override |
![]() | |
virtual Type | type () const override |
Asset () | |
Asset (ID id) | |
![]() | |
Asset () | |
Asset (ID id) | |
bool | operator== (ID id) const |
ID | id () const |
virtual Type | type () const =0 |
virtual String | getTypeStr () const |
![]() | |
Asset * | getNext () const |
bool | insertAfter (Asset *object) |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
![]() | |
virtual | ~LinkedObject () |
virtual LinkedObject * | next () const |
bool | insertAfter (LinkedObject *object) |
bool | operator== (const LinkedObject &other) const |
bool | operator!= (const LinkedObject &other) const |
Additional Inherited Members | |
![]() | |
enum | Type { Type::XX } |
using | List = LinkedObjectListTemplate< Asset > |
using | OwnedList = OwnedLinkedObjectListTemplate< Asset > |
using | ID = AssetID |
![]() | |
using | Iterator = IteratorTemplate< Asset, Asset *, Asset & > |
using | ConstIterator = IteratorTemplate< const Asset, const Asset *, const Asset & > |
![]() | |
static constexpr Asset::Type | assetType |
Detailed Description
Base class for a loaded font.
As there are various formats for defining fonts we need a consistent interface for accessing and rendering them, which this class defines.
Fonts are specified by family and size, and can be registered with various typefaces.
Member Function Documentation
◆ getFace()
|
pure virtual |
Implemented in Graphics::ResourceFont, and Graphics::LcdFont.
◆ height()
|
pure virtual |
Implemented in Graphics::ResourceFont, and Graphics::LcdFont.
◆ name()
|
pure virtual |
Implemented in Graphics::ResourceFont, and Graphics::LcdFont.
◆ write()
|
inlineoverridevirtual |
Reimplemented from Graphics::Asset.
The documentation for this class was generated from the following file: