19#ifndef HEADER_DIGIT_FACE_HPP
20#define HEADER_DIGIT_FACE_HPP
22#include "font/font_with_face.hpp"
45 virtual
void init() OVERRIDE;
47 virtual
void reset() OVERRIDE;
49 virtual
bool disableTextShaping() const OVERRIDE {
return true; }
A font which uses a more cartonish style TTF to render big numbers in STK.
Definition: digit_face.hpp:30
virtual void init() OVERRIDE
Initialize the font structure, but don't load glyph here.
Definition: digit_face.cpp:30
virtual void reset() OVERRIDE
Clear all the loaded characters, sub-class can do pre-loading of characters after this.
Definition: digit_face.cpp:38
virtual bool supportLazyLoadChar() const OVERRIDE
Override it if sub-class should not do lazy loading characters.
Definition: digit_face.hpp:32
virtual unsigned int getScalingFactorTwo() const OVERRIDE
Defined by sub-class about the scaling factor 2.
Definition: digit_face.hpp:38
virtual float getScalingFactorOne() const OVERRIDE
Defined by sub-class about the scaling factor 1.
Definition: digit_face.hpp:36
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: digit_face.hpp:34
This class will load a list of TTF files from FontManager, and save them inside m_ft_faces for FontWi...
Definition: face_ttf.hpp:57
An abstract class which contains functions which convert vector fonts into bitmap and render them in ...
Definition: font_with_face.hpp:72