|
| Font (const ::Font &font) |
|
| Font (const ::Image &image, ::Color key, int firstChar) |
| Loads a Font from the given image with a color key. More...
|
|
| Font (const Font &)=delete |
|
| Font (const std::string &fileName) |
| Loads a Font from the given file. More...
|
|
| Font (const std::string &fileName, int fontSize, int *fontChars, int charCount) |
| Loads a Font from the given file, with generation parameters. More...
|
|
| Font (const std::string &fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) |
| Loads a font from memory, based on the given file type and file data. More...
|
|
| Font (Font &&other) |
|
| Font (int baseSize, int glyphCount, int glyphPadding, ::Texture2D texture, ::Rectangle *recs=nullptr, ::GlyphInfo *glyphs=nullptr) |
|
Font & | DrawText (const std::string &text, ::Vector2 position, ::Vector2 origin, float rotation, float fontSize, float spacing, ::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...
|
|
int | GetGlyphCount () const |
| Retrieves the glyphCount value for the object. More...
|
|
int | GetGlyphIndex (int character) const |
| Get index position for a unicode character on font.
|
|
int | GetGlyphPadding () const |
| Retrieves the glyphPadding value for the object. More...
|
|
::GlyphInfo * | GetGlyphs () const |
| Retrieves the glyphs value for the object. More...
|
|
::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)
|
|
bool | Load (const ::Image &image, ::Color key, int firstChar) |
|
bool | Load (const std::string &fileName) |
| Loads a font from a given file. More...
|
|
bool | Load (const std::string &fileName, int fontSize, int *fontChars, int charCount) |
| Loads a font from a given file with generation parameters. More...
|
|
bool | Load (const std::string &fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) |
|
Vector2 | MeasureText (const std::string &text, float fontSize, float spacing) const |
| Measure string size for Font.
|
|
Font & | operator= (const ::Font &font) |
|
Font & | operator= (const Font &)=delete |
|
Font & | operator= (Font &&other) |
|
void | SetBaseSize (int value) |
| Sets the baseSize value for the object. More...
|
|
void | SetGlyphCount (int value) |
| Sets the glyphCount value for the object. More...
|
|
void | SetGlyphPadding (int value) |
| Sets the glyphPadding value for the object. More...
|
|
void | SetGlyphs (::GlyphInfo *value) |
| Sets the glyphs 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 14 of file Font.hpp.