|
|
| 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 & | 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.
|
| |
|
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.
|
| |
|
Font & | DrawText (int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 }) |
| | Draw one character (codepoint)
|
| |
| int | GetBaseSize () const |
| | Retrieves the baseSize value for the object. More...
|
| |
| ::CharInfo * | GetChars () const |
| | Retrieves the chars value for the object. More...
|
| |
| int | GetCharsCount () const |
| | Retrieves the charsCount value for the object. More...
|
| |
| int | GetCharsPadding () const |
| | Retrieves the charsPadding value for the object. More...
|
| |
|
int | GetGlyphIndex (int character) const |
| | Get index position for a unicode character on font.
|
| |
| ::Rectangle * | GetRecs () const |
| | Retrieves the recs value for the object. More...
|
| |
| ::Texture2D | GetTexture () const |
| | Retrieves the texture value for the object. More...
|
| |
|
inline ::Image | ImageText (const std::string &text, float fontSize, float spacing, ::Color tint) const |
| | Create an image from text (custom sprite font)
|
| |
|
Vector2 | MeasureText (const std::string &text, float fontSize, float spacing) const |
| | Measure string size for Font.
|
| |
|
Font & | operator= (const ::Font &font) |
| |
| void | SetBaseSize (int value) |
| | Sets the baseSize value for the object. More...
|
| |
| void | SetChars (::CharInfo *value) |
| | Sets the chars value for the object. More...
|
| |
| void | SetCharsCount (int value) |
| | Sets the charsCount value for the object. More...
|
| |
| void | SetCharsPadding (int value) |
| | Sets the charsPadding value for the object. More...
|
| |
| void | SetRecs (::Rectangle *value) |
| | Sets the recs value for the object. More...
|
| |
| void | SetTexture (::Texture2D value) |
| | Sets the texture value for the object. More...
|
| |
|
void | Unload () |
| |
Font type, includes texture and charSet array data.
Definition at line 13 of file Font.hpp.