|
| Font () |
| Retrieves the default Font.
|
|
| 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=0, int charCount=0) |
| 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) |
|
void | DrawText (const char *text, ::Vector2 position, ::Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint=WHITE) const |
|
void | DrawText (const char *text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE) const |
| Draw text using font and additional parameters.
|
|
void | DrawText (const char *text, int posX, int posY, float fontSize, float spacing, ::Color tint=WHITE) const |
| Draw text using font and additional parameters.
|
|
void | DrawText (const int *codepoints, int count, ::Vector2 position, float fontSize, float spacing, ::Color tint={255, 255, 255, 255}) const |
| Draw multiple character (codepoint)
|
|
void | DrawText (const std::string &text, ::Vector2 position, ::Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint=WHITE) const |
|
void | DrawText (const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE) const |
| Draw text using font and additional parameters.
|
|
void | DrawText (const std::string &text, int posX, int posY, float fontSize, float spacing, ::Color tint=WHITE) const |
| Draw text using font and additional parameters.
|
|
void | DrawText (int codepoint, ::Vector2 position, float fontSize, ::Color tint={255, 255, 255, 255}) const |
| 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...
|
|
TextureUnmanaged | GetTexture () |
| Get the texture atlas containing the glyphs.
|
|
::Image | ImageText (const char *text, float fontSize, float spacing, ::Color tint) const |
| Create an image from text (custom sprite font)
|
|
::Image | ImageText (const std::string &text, float fontSize, float spacing, ::Color tint) const |
| Create an image from text (custom sprite font)
|
|
bool | IsValid () const |
| Returns if the font is ready to be used.
|
|
void | Load (const ::Image &image, ::Color key, int firstChar) |
|
void | Load (const std::string &fileName) |
| Loads a font from a given file. More...
|
|
void | Load (const std::string &fileName, int fontSize, int *fontChars, int charCount) |
| Loads a font from a given file with generation parameters. More...
|
|
void | Load (const std::string &fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) |
|
Vector2 | MeasureText (const char *text, float fontSize, float spacing) const |
| Measure string size for Font.
|
|
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) noexcept |
|
void | SetTexture (const ::Texture &newTexture) |
| Set the texture atlas containing the glyphs.
|
|
void | Unload () |
|
Font type, includes texture and charSet array data.
Definition at line 15 of file Font.hpp.