|
| | Font () |
| |
| | Font (const ::Font &font) |
| |
| | Font (const ::Image &image, ::Color key, int firstChar) |
| |
| | Font (const std::string &fileName) |
| |
| | Font (const std::string &fileName, int fontSize, int *fontChars, int charCount) |
| |
| | Font (const std::string &fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) |
| |
| | ~Font () |
| |
| Font & | DrawText (const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap, ::Color tint, int selectStart, int selectLength, ::Color selectText, ::Color selectBack) |
| | Draw text using font inside rectangle limits with support for text selection. More...
|
| |
| Font & | DrawText (const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap=false, ::Color tint=WHITE) |
| |
| Font & | DrawText (const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE) |
| | Draw text using font and additional parameters. More...
|
| |
| Font & | DrawText (int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 }) |
| | Draw one character (codepoint) More...
|
| |
| int | GetBaseSize () const |
| |
| inline ::CharInfo * | GetChars () const |
| |
| int | GetCharsCount () const |
| |
| int | GetCharsPadding () const |
| |
| int | GetGlyphIndex (int character) const |
| | Get index position for a unicode character on font. More...
|
| |
| inline ::Rectangle * | GetRecs () const |
| |
| inline ::Texture2D | GetTexture () const |
| |
| inline ::Image | ImageText (const std::string &text, float fontSize, float spacing, ::Color tint) const |
| | Create an image from text (custom sprite font) More...
|
| |
| Vector2 | MeasureText (const std::string &text, float fontSize, float spacing) const |
| | Measure string size for Font. More...
|
| |
| Font & | operator= (const ::Font &font) |
| |
| void | SetBaseSize (int value) |
| |
| void | SetChars (::CharInfo *value) |
| |
| void | SetCharsCount (int value) |
| |
| void | SetCharsPadding (int value) |
| |
| void | SetRecs (::Rectangle *value) |
| |
| void | SetTexture (::Texture2D value) |
| |
| void | Unload () |
| |
Definition at line 34 of file Font.hpp.