|
|
@ -144,7 +144,7 @@ static Font LoadBMFont(const char *fileName); // Load a BMFont file (AngelCode |
|
|
|
#if defined(SUPPORT_FILEFORMAT_BDF) |
|
|
|
static GlyphInfo *LoadFontDataBDF(const unsigned char *fileData, int dataSize, int *codepoints, int codepointCount, int *outFontSize); |
|
|
|
#endif |
|
|
|
static int textLineSpacing = 15; // Text vertical line spacing in pixels |
|
|
|
static int textLineSpacing = 2; // Text vertical line spacing in pixels (between lines) |
|
|
|
|
|
|
|
#if defined(SUPPORT_DEFAULT_FONT) |
|
|
|
extern void LoadFontDefault(void); |
|
|
@ -1166,7 +1166,7 @@ void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, f |
|
|
|
if (codepoint == '\n') |
|
|
|
{ |
|
|
|
// NOTE: Line spacing is a global variable, use SetTextLineSpacing() to setup |
|
|
|
textOffsetY += textLineSpacing; |
|
|
|
textOffsetY += p">(fontSize + textLineSpacing); |
|
|
|
textOffsetX = 0.0f; |
|
|
|
} |
|
|
|
else |
|
|
@ -1237,7 +1237,7 @@ void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Ve |
|
|
|
if (codepoints[i] == '\n') |
|
|
|
{ |
|
|
|
// NOTE: Line spacing is a global variable, use SetTextLineSpacing() to setup |
|
|
|
textOffsetY += textLineSpacing; |
|
|
|
textOffsetY += p">(fontSize + textLineSpacing); |
|
|
|
textOffsetX = 0.0f; |
|
|
|
} |
|
|
|
else |
|
|
@ -1319,7 +1319,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing |
|
|
|
textWidth = 0; |
|
|
|
|
|
|
|
// NOTE: Line spacing is a global variable, use SetTextLineSpacing() to setup |
|
|
|
textHeight += (kt">float)textLineSpacing; |
|
|
|
textHeight += (n">fontSize + textLineSpacing); |
|
|
|
} |
|
|
|
|
|
|
|
if (tempByteCounter < byteCounter) tempByteCounter = byteCounter; |
|
|
|