REVIEWED: Added SetTextLineSpacing()
to multiline examples
This commit is contained in:
parent
0f39051562
commit
d41e3141f1
2 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,8 @@ int main(void)
|
||||||
// Set bilinear scale filter for better font scaling
|
// Set bilinear scale filter for better font scaling
|
||||||
SetTextureFilter(font.texture, TEXTURE_FILTER_BILINEAR);
|
SetTextureFilter(font.texture, TEXTURE_FILTER_BILINEAR);
|
||||||
|
|
||||||
|
SetTextLineSpacing(54); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||||
|
|
||||||
// Free codepoints, atlas has already been generated
|
// Free codepoints, atlas has already been generated
|
||||||
free(codepointsNoDups);
|
free(codepointsNoDups);
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@ int main(void)
|
||||||
// NOTE: We define a font base size of 32 pixels tall and up-to 250 characters
|
// NOTE: We define a font base size of 32 pixels tall and up-to 250 characters
|
||||||
Font fontTtf = LoadFontEx("resources/pixantiqua.ttf", 32, 0, 250);
|
Font fontTtf = LoadFontEx("resources/pixantiqua.ttf", 32, 0, 250);
|
||||||
|
|
||||||
|
SetTextLineSpacing(48); // Set line spacing for multiline text (when line breaks are included '\n')
|
||||||
|
|
||||||
bool useTtf = false;
|
bool useTtf = false;
|
||||||
|
|
||||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue