19 #ifndef HEADER_REGULAR_FACE_HPP 20 #define HEADER_REGULAR_FACE_HPP 22 #include "font/font_with_face.hpp" 43 virtual void init() OVERRIDE;
45 virtual void reset() OVERRIDE;
47 virtual bool useColorGlyphPage()
const OVERRIDE {
return true; }
virtual void reset() OVERRIDE
Clear all the loaded characters, sub-class can do pre-loading of characters after this...
Definition: regular_face.cpp:38
This class will load a list of TTF files from FontManager, and save them inside m_ft_faces for FontWi...
Definition: face_ttf.hpp:56
A font which uses regular TTFs to render most text in STK.
Definition: regular_face.hpp:29
virtual unsigned int getScalingFactorTwo() const OVERRIDE
Defined by sub-class about the scaling factor 2.
Definition: regular_face.hpp:36
An abstract class which contains functions which convert vector fonts into bitmap and render them in ...
Definition: font_with_face.hpp:55
virtual void init() OVERRIDE
Initialize the font structure, but don't load glyph here.
Definition: regular_face.cpp:30
virtual unsigned int getGlyphPageSize() const OVERRIDE
Defined by sub-class about the texture size of glyph page, it should be a power of two...
Definition: regular_face.hpp:32
virtual float getScalingFactorOne() const OVERRIDE
Defined by sub-class about the scaling factor 1.
Definition: regular_face.hpp:34
RegularFace()
Constructor of RegularFace.
Definition: regular_face.cpp:25