From 1cf06615f97bc27f732a880e89e9366140095bf1 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 03:37:41 +0300 Subject: publish --- src/export-font-as-code.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/export-font-as-code.c (limited to 'src/export-font-as-code.c') 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 @@ +#include +#include +#include "config.h" + +int +main (int argc, char *argv[]) +{ + InitWindow (INITIAL_SCREEN_WIDTH, + INITIAL_SCREEN_HEIGHT, + WINDOW_NAME); + + // Font font = LoadFontEx ("res/KodeMono-VariableFont_wght.ttf", 4*FONT_SIZE, NULL, 0); + Font font = LoadFontEx ("res/KodeMono-VariableFont_wght.ttf", FONT_SIZE + 4, NULL, 0); + ExportFontAsCode (font, "res/font_data.h"); + + return EXIT_SUCCESS; +} -- cgit v1.3.1