SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FaceTTF Class Reference

This class will load a list of TTF files from FontManager, and save them inside m_ft_faces for FontWithFace to load glyph. More...

#include <face_ttf.hpp>

Inheritance diagram for FaceTTF:
Inheritance graph
[legend]

Public Member Functions

void reset ()
 
void loadTTF (std::vector< FT_Face > faces)
 
FT_Face getFace (unsigned int i) const
 Return a TTF in m_ft_faces.
 
unsigned int getTotalFaces () const
 Return the total TTF files loaded.
 
void insertFontArea (const FontArea &a, unsigned font_index, unsigned glyph_index)
 
bool enabledForFont (unsigned idx) const
 
const FontAreagetFontArea (unsigned font_index, unsigned glyph_index)
 
bool getFontAndGlyphFromChar (uint32_t c, unsigned *font, unsigned *glyph)
 

Private Attributes

std::vector< std::pair< FT_Face, std::map< unsigned, FontArea > > > m_ft_faces
 Contains all FT_Face with a list of loaded glyph index with the FontArea.
 

Detailed Description

This class will load a list of TTF files from FontManager, and save them inside m_ft_faces for FontWithFace to load glyph.

Member Function Documentation

◆ getFace()

FT_Face FaceTTF::getFace ( unsigned int  i) const
inline

Return a TTF in m_ft_faces.

Parameters
iindex of TTF file in m_ft_faces.

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