summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_font_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-09-02 11:48:19 +0200
committerRay <[email protected]>2023-09-02 11:48:19 +0200
commitd41e3141f194d82ad0f6667aadac2d96d69bb770 (patch)
tree1eb6af65cd67ba9b5f581d2ebc1264248c8a4cdd /examples/text/text_font_loading.c
parent0f39051562909875d97a0156eef5d760f34d6390 (diff)
downloadraylib-d41e3141f194d82ad0f6667aadac2d96d69bb770.tar.gz
raylib-d41e3141f194d82ad0f6667aadac2d96d69bb770.zip
REVIEWED: Added `SetTextLineSpacing()` to multiline examples
Diffstat (limited to 'examples/text/text_font_loading.c')
-rw-r--r--examples/text/text_font_loading.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/text/text_font_loading.c b/examples/text/text_font_loading.c
index 2ded64f0..a3ff988e 100644
--- a/examples/text/text_font_loading.c
+++ b/examples/text/text_font_loading.c
@@ -47,6 +47,8 @@ int main(void)
// 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);
+ SetTextLineSpacing(48); // Set line spacing for multiline text (when line breaks are included '\n')
+
bool useTtf = false;
SetTargetFPS(60); // Set our game to run at 60 frames-per-second