Castor3D 0.17.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::Font::GlyphLoader Struct Referenceabstract

Structure used to load glyphs on demand. More...

#include <Font.hpp>

Inheritance diagram for castor::Font::GlyphLoader:
Inheritance graph
[legend]
Collaboration diagram for castor::Font::GlyphLoader:
Collaboration graph
[legend]

Public Member Functions

virtual ~GlyphLoader () noexcept=default
 
virtual void initialise ()=0
 Initialises the loader.
 
virtual void cleanup ()=0
 Cleans the loader up.
 
virtual Glyph loadGlyph (char32_t c)=0
 Loads wanted glyph.
 
virtual void fillKerningTable (char32_t c, GlyphArray const &glyphs, GlyphKerningMap &table)=0
 Completes the given kerning table for given glyph.
 

Additional Inherited Members

- Protected Member Functions inherited from castor::NonMovable
 NonMovable ()=default
 Constructor.
 
 ~NonMovable () noexcept=default
 Destructor.
 

Detailed Description

Structure used to load glyphs on demand.

Remarks
PImpl to hide FreeType inclusions

Constructor & Destructor Documentation

◆ ~GlyphLoader()

virtual castor::Font::GlyphLoader::~GlyphLoader ( )
virtualdefaultnoexcept

Member Function Documentation

◆ cleanup()

virtual void castor::Font::GlyphLoader::cleanup ( )
pure virtual

Cleans the loader up.

◆ fillKerningTable()

virtual void castor::Font::GlyphLoader::fillKerningTable ( char32_t c,
GlyphArray const & glyphs,
GlyphKerningMap & table )
pure virtual

Completes the given kerning table for given glyph.

Parameters
[in]cThe glyph character.
[in]glyphsThe currently loaded glyphs.
[in,out]tableThe table to fill.

◆ initialise()

virtual void castor::Font::GlyphLoader::initialise ( )
pure virtual

Initialises the loader.

◆ loadGlyph()

virtual Glyph castor::Font::GlyphLoader::loadGlyph ( char32_t c)
pure virtual

Loads wanted glyph.

Parameters
[in]cThe character.
Returns
The glyph.

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