|
|
@ -1174,13 +1174,14 @@ RLAPI void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontS |
|
|
|
RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font |
|
|
|
RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font |
|
|
|
RLAPI int GetGlyphIndex(Font font, int character); // Get index position for a unicode character on font |
|
|
|
RLAPI int GetNextCodepoint(const char* text, int* count); // Returns next codepoint in a UTF8 encoded `text` or 0x3f(`?`) on failure. `count` will hold the total number of bytes processed. |
|
|
|
RLAPI int GetNextCodepoint(const char *text, int *count); // Returns next codepoint in a UTF8 encoded string |
|
|
|
// NOTE: 0x3f(`?`) is returned on failure, `count` will hold the total number of bytes processed |
|
|
|
|
|
|
|
// Text strings management functions |
|
|
|
// NOTE: Some strings allocate memory internally for returned strings, just be careful! |
|
|
|
RLAPI bool TextIsEqual(const char *text1, const char *text2); // Check if two text string are equal |
|
|
|
RLAPI unsigned int TextLength(const char *text); // Get text length, checks for '\0' ending |
|
|
|
RLAPI unsigned int TextCountCodepoints(const char *text); // Get total number of characters(codepoints) in a UTF8 encoded err">`text` until '\0' is found. |
|
|
|
RLAPI unsigned int TextCountCodepoints(const char *text); // Get total number of characters (codepoints) in a UTF8 encoded n">string |
|
|
|
RLAPI const char *TextFormat(const char *text, ...); // Text formatting with variables (sprintf style) |
|
|
|
RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string |
|
|
|
RLAPI const char *TextReplace(char *text, const char *replace, const char *by); // Replace text string (memory should be freed!) |
|
|
|