diff options
| author | 2026-11-08 00:37:41 +0000 | |
|---|---|---|
| committer | 2026-11-08 00:37:41 +0000 | |
| commit | 1cf06615f97bc27f732a880e89e9366140095bf1 (patch) | |
| tree | a02c356c64b150c164fd72254da33d872f572957 /src/export-font-as-code.c | |
| download | coursework-1cf06615f97bc27f732a880e89e9366140095bf1.tar.gz | |
Diffstat (limited to 'src/export-font-as-code.c')
| -rw-r--r-- | src/export-font-as-code.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/export-font-as-code.c b/src/export-font-as-code.c new file mode 100644 index 0000000..1fedc3a --- /dev/null +++ b/src/export-font-as-code.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #include <stdlib.h> | ||
| 2 | #include <raylib.h> | ||
| 3 | #include "config.h" | ||
| 4 | |||
| 5 | int | ||
| 6 | main (int argc, char *argv[]) | ||
| 7 | { | ||
| 8 | InitWindow (INITIAL_SCREEN_WIDTH, | ||
| 9 | INITIAL_SCREEN_HEIGHT, | ||
| 10 | WINDOW_NAME); | ||
| 11 | |||
| 12 | // Font font = LoadFontEx ("res/KodeMono-VariableFont_wght.ttf", 4*FONT_SIZE, NULL, 0); | ||
| 13 | Font font = LoadFontEx ("res/KodeMono-VariableFont_wght.ttf", FONT_SIZE + 4, NULL, 0); | ||
| 14 | ExportFontAsCode (font, "res/font_data.h"); | ||
| 15 | |||
| 16 | return EXIT_SUCCESS; | ||
| 17 | } | ||
