#include <iTextureFont.h>
◆ ~iTextureFont()
igor::iTextureFont::~iTextureFont |
( |
| ) |
|
◆ create()
- Returns
- a newly created font
- Parameters
-
texture | the texture to use (needs to be loaded already) |
type | font type |
colorMask | use this color channel to detect the size of characters |
colorMaskThreshold | this threshold determines what texel belongs to the character and wich not |
◆ getCharacters()
returns character set
- Returns
- vector of characters
◆ getTexture()
returns pointer to the font texture
- Returns
- pointer to font texture
◆ isValid()
bool igor::iTextureFont::isValid |
( |
| ) |
const |
returns true if the font was loading correctly
◆ measureHeight()
calculates the height of a iaString with line breaks
- Parameters
-
text | the text to calculate with |
size | font size |
maxWidth | with to make line break |
lineHeight | factor for the line height (default value is 1.15) |
◆ measureWidth()
calculates the width of the given iaString using this font
- Parameters
-
text | the text to calculate the width |
size | size of the font |
The documentation for this class was generated from the following files: