Graphics::LcdTypeFace Class Reference

#include <LcdFont.h>

Inheritance diagram for Graphics::LcdTypeFace:
Collaboration diagram for Graphics::LcdTypeFace:

Public Member Functions

FontStyles getStyle () const override
 Style of this typeface (bold, italic, etc.) More...
 
uint8_t height () const override
 Get height of typeface, same for all characters. More...
 
uint8_t descent () const override
 
GlyphObject::Metrics getMetrics (char ch) const override
 Get metrics for a character. More...
 
std::unique_ptr< GlyphObjectgetGlyph (char ch, const GlyphObject::Options &options) const override
 Get the glyph for a character. More...
 
- Public Member Functions inherited from Graphics::TypeFace
uint8_t baseline () const
 Get baseline relative to top of mbox. More...
 
uint16_t getTextWidth (const char *text, uint16_t length) const
 Compute displayed width for a text string. More...
 
void write (MetaWriter &meta) const override
 
- Public Member Functions inherited from Graphics::AssetTemplate< AssetType::Typeface >
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::Typeface >
static constexpr Asset::Type assetType
 

Member Function Documentation

◆ descent()

uint8_t Graphics::LcdTypeFace::descent ( ) const
inlineoverridevirtual

How many pixels from bottom of em-square to baseline

Implements Graphics::TypeFace.

◆ getGlyph()

std::unique_ptr<GlyphObject> Graphics::LcdTypeFace::getGlyph ( char  ch,
const GlyphObject::Options options 
) const
overridevirtual

Get the glyph for a character.

Parameters
ch
optionsOptions to control how the glyph is drawn (colour, shading, etc)
Return values
GlyphObject*The glyph, nullptr if no glyph exists in the typeface for this character

Caller is responsible for destroying the glyph when no longer required.

Implements Graphics::TypeFace.

◆ getMetrics()

GlyphObject::Metrics Graphics::LcdTypeFace::getMetrics ( char  ch) const
inlineoverridevirtual

Get metrics for a character.

Implements Graphics::TypeFace.

◆ getStyle()

FontStyles Graphics::LcdTypeFace::getStyle ( ) const
inlineoverridevirtual

Style of this typeface (bold, italic, etc.)

Implements Graphics::TypeFace.

◆ height()

uint8_t Graphics::LcdTypeFace::height ( ) const
inlineoverridevirtual

Get height of typeface, same for all characters.

Implements Graphics::TypeFace.


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