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 TypeFacegetFace (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 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 LinkedObjectnext () 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 class  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()

virtual const TypeFace* Graphics::Font::getFace ( FontStyles  style) const
pure virtual

◆ height()

virtual uint16_t Graphics::Font::height ( ) const
pure virtual

◆ name()

virtual String Graphics::Font::name ( ) const
pure virtual

◆ write()

void Graphics::Font::write ( MetaWriter meta) const
inlineoverridevirtual

Reimplemented from Graphics::Asset.


The documentation for this class was generated from the following file: