Skip to content

Commit 0658abc

Browse files
committed
Update text_raylib_fonts.c
1 parent 8ba4ff2 commit 0658abc

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

examples/text/text_raylib_fonts.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [text] example - raylib fonts loading
3+
* raylib [text] example - sprite fonts loading
44
*
55
* Example complexity rating: [★☆☆☆] 1/4
66
*
@@ -30,19 +30,19 @@ int main(void)
3030
const int screenWidth = 800;
3131
const int screenHeight = 450;
3232

33-
InitWindow(screenWidth, screenHeight, "raylib [text] example - raylib fonts");
33+
InitWindow(screenWidth, screenHeight, "raylib [text] example - sprite fonts");
3434

3535
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
3636
Font fonts[MAX_FONTS] = { 0 };
3737

38-
fonts[0] = LoadFont("resources/fonts/alagard.png");
39-
fonts[1] = LoadFont("resources/fonts/pixelplay.png");
40-
fonts[2] = LoadFont("resources/fonts/mecha.png");
41-
fonts[3] = LoadFont("resources/fonts/setback.png");
42-
fonts[4] = LoadFont("resources/fonts/romulus.png");
43-
fonts[5] = LoadFont("resources/fonts/pixantiqua.png");
44-
fonts[6] = LoadFont("resources/fonts/alpha_beta.png");
45-
fonts[7] = LoadFont("resources/fonts/jupiter_crash.png");
38+
fonts[0] = LoadFont("resources/sprite_fonts/alagard.png");
39+
fonts[1] = LoadFont("resources/sprite_fonts/pixelplay.png");
40+
fonts[2] = LoadFont("resources/sprite_fonts/mecha.png");
41+
fonts[3] = LoadFont("resources/sprite_fonts/setback.png");
42+
fonts[4] = LoadFont("resources/sprite_fonts/romulus.png");
43+
fonts[5] = LoadFont("resources/sprite_fonts/pixantiqua.png");
44+
fonts[6] = LoadFont("resources/sprite_fonts/alpha_beta.png");
45+
fonts[7] = LoadFont("resources/sprite_fonts/jupiter_crash.png");
4646

4747
const char *messages[MAX_FONTS] = { "ALAGARD FONT designed by Hewett Tsoi",
4848
"PIXELPLAY FONT designed by Aleksander Shevchuk",
@@ -87,8 +87,8 @@ int main(void)
8787

8888
ClearBackground(RAYWHITE);
8989

90-
DrawText("free fonts included with raylib", 250, 20, 20, DARKGRAY);
91-
DrawLine(220, 50, 590, 50, DARKGRAY);
90+
DrawText("free sprite fonts included with raylib", 220, 20, 20, DARKGRAY);
91+
DrawLine(220, 50, 600, 50, DARKGRAY);
9292

9393
for (int i = 0; i < MAX_FONTS; i++)
9494
{

0 commit comments

Comments
 (0)