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 |
Public Member Functions inherited from Graphics::AssetTemplate< AssetType::Font > | |
| virtual Type | type () const override |
| Asset () | |
| Asset (ID id) | |
Public Member Functions inherited from Graphics::Asset | |
| Asset () | |
| Asset (ID id) | |
| bool | operator== (ID id) const |
| ID | id () const |
| virtual Type | type () const =0 |
| virtual String | getTypeStr () const |
Public Member Functions inherited from LinkedObjectTemplate< Asset > | |
| Asset * | getNext () const |
| bool | insertAfter (Asset *object) |
| Iterator | begin () const |
| Iterator | end () const |
| Iterator | cbegin () const |
| Iterator | cend () const |
Public Member Functions inherited from LinkedObject | |
| 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 | |
Public Types inherited from Graphics::Asset | |
| enum | Type { Type::XX } |
| using | List = LinkedObjectListTemplate< Asset > |
| using | OwnedList = OwnedLinkedObjectListTemplate< Asset > |
| using | ID = AssetID |
Public Types inherited from LinkedObjectTemplate< Asset > | |
| using | Iterator = IteratorTemplate< Asset, Asset *, Asset & > |
| using | ConstIterator = IteratorTemplate< const Asset, const Asset *, const Asset & > |
Static Public Attributes inherited from Graphics::AssetTemplate< AssetType::Font > | |
| 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:
Public Member Functions inherited from
1.8.17