|
1 | 1 | /******************************************************************************************* |
2 | 2 | * |
3 | | -* raylib [text] example - raylib fonts loading |
| 3 | +* raylib [text] example - sprite fonts loading |
4 | 4 | * |
5 | 5 | * Example complexity rating: [★☆☆☆] 1/4 |
6 | 6 | * |
@@ -30,19 +30,19 @@ int main(void) |
30 | 30 | const int screenWidth = 800; |
31 | 31 | const int screenHeight = 450; |
32 | 32 |
|
33 | | - InitWindow(screenWidth, screenHeight, "raylib [text] example - raylib fonts"); |
| 33 | + InitWindow(screenWidth, screenHeight, "raylib [text] example - sprite fonts"); |
34 | 34 |
|
35 | 35 | // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) |
36 | 36 | Font fonts[MAX_FONTS] = { 0 }; |
37 | 37 |
|
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"); |
46 | 46 |
|
47 | 47 | const char *messages[MAX_FONTS] = { "ALAGARD FONT designed by Hewett Tsoi", |
48 | 48 | "PIXELPLAY FONT designed by Aleksander Shevchuk", |
@@ -87,8 +87,8 @@ int main(void) |
87 | 87 |
|
88 | 88 | ClearBackground(RAYWHITE); |
89 | 89 |
|
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); |
92 | 92 |
|
93 | 93 | for (int i = 0; i < MAX_FONTS; i++) |
94 | 94 | { |
|
0 commit comments