|
@@ -1151,7 +1151,7 @@ void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, f
|
|
|
|
|
|
int size = TextLength(text); // Total size in bytes of the text, scanned by codepoints in loop
|
|
int size = TextLength(text); // Total size in bytes of the text, scanned by codepoints in loop
|
|
|
|
|
|
- int textOffsetY = 0; // Offset between lines (on linebreak '\n')
|
|
|
|
|
|
+ float textOffsetY = 0; // Offset between lines (on linebreak '\n')
|
|
float textOffsetX = 0.0f; // Offset X to next character to draw
|
|
float textOffsetX = 0.0f; // Offset X to next character to draw
|
|
|
|
|
|
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor
|
|
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor
|
|
@@ -1225,7 +1225,7 @@ void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSiz
|
|
// Draw multiple character (codepoints)
|
|
// Draw multiple character (codepoints)
|
|
void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint)
|
|
void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint)
|
|
{
|
|
{
|
|
- int textOffsetY = 0; // Offset between lines (on linebreak '\n')
|
|
|
|
|
|
+ float textOffsetY = 0; // Offset between lines (on linebreak '\n')
|
|
float textOffsetX = 0.0f; // Offset X to next character to draw
|
|
float textOffsetX = 0.0f; // Offset X to next character to draw
|
|
|
|
|
|
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor
|
|
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor
|