|
| | RegularFace () |
| | Constructor of RegularFace. More...
|
| |
|
virtual void | init () OVERRIDE |
| | Initialize the font structure, but don't load glyph here.
|
| |
|
virtual void | reset () OVERRIDE |
| | Clear all the loaded characters, sub-class can do pre-loading of characters after this.
|
| |
|
virtual bool | useColorGlyphPage () const OVERRIDE |
| |
| | FontWithFace (const std::string &name) |
| | Constructor. More...
|
| |
| virtual | ~FontWithFace () |
| | Destructor. More...
|
| |
| virtual core::dimension2d< u32 > | getDimension (const core::stringw &text, FontSettings *font_settings=NULL) |
| | Get the dimension of text with support to different FontSettings, it will also do checking for missing characters in font and lazy load them. More...
|
| |
| int | getCharacterFromPos (const wchar_t *text, int pixel_x, FontSettings *font_settings=NULL) const |
| | Calculate the index of the character in the text on a specific position. More...
|
| |
| void | render (const std::vector< gui::GlyphLayout > &gl, const core::rect< s32 > &position, const video::SColor &color, bool hcenter, bool vcenter, const core::rect< s32 > *clip, FontSettings *font_settings, FontCharCollector *char_collector=NULL) |
| | Render text and clip it to the specified rectangle if wanted, it will also do checking for missing characters in font and lazy load them. More...
|
| |
|
virtual void | drawText (const core::stringw &text, const core::rect< s32 > &position, const video::SColor &color, bool hcenter, bool vcenter, const core::rect< s32 > *clip, FontSettings *font_settings, FontCharCollector *char_collector=NULL) |
| |
|
void | drawTextQuick (const core::stringw &text, const core::rect< s32 > &position, const video::SColor &color, bool hcenter, bool vcenter, const core::rect< s32 > *clip, FontSettings *font_settings, FontCharCollector *char_collector=NULL) |
| |
| void | dumpGlyphPage (const std::string &name) |
| | Write the current glyph page in png inside current running directory. More...
|
| |
| void | dumpGlyphPage () |
| | Write the current glyph page in png inside current running directory. More...
|
| |
|
gui::IGUISpriteBank * | getSpriteBank () const |
| | Return the sprite bank.
|
| |
| const FontArea & | getAreaFromCharacter (const wchar_t c, bool *fallback_font) const |
| | Return the FontArea about a character. More...
|
| |
|
unsigned int | getDPI () const |
| | Return the dpi of this face.
|
| |
|
FaceTTF * | getFaceTTF () const |
| |
| void | insertGlyph (unsigned font_number, unsigned glyph_index) |
| | Render a glyph for a character into bitmap and save it into the glyph page. More...
|
| |
|
int | getFontMaxHeight () const |
| |
|
int | getGlyphMaxHeight () const |
| |
|
virtual bool | disableTextShaping () const |
| |
|
float | getInverseShaping () const |
| |
| virtual float | getNativeScalingFactor () const |
| | Defined by sub-class about the native scaling factor, to provide. More...
|
| |
|
void | setDPI () |
| | Set the face size which is resolution-dependent.
|
| |
A font which uses regular TTFs to render most text in STK.