From d0bca12e38fe6eb75cbf9920d29bc1091a910bff Mon Sep 17 00:00:00 2001 From: Brett Bergstrom Date: Wed, 28 Jan 2026 14:28:28 -0600 Subject: [PATCH] al_init_qoi_font --- allegro_qoi.c | 9 +++++++++ allegro_qoi.h | 1 + 2 files changed, 10 insertions(+) diff --git a/allegro_qoi.c b/allegro_qoi.c index 725820b..37e11d6 100644 --- a/allegro_qoi.c +++ b/allegro_qoi.c @@ -7,6 +7,9 @@ #include #include #include +#include + +ALLEGRO_FONT* _al_load_bitmap_font(const char *filename, int size, int flags); #ifdef __cplusplus extern "C" { @@ -94,6 +97,12 @@ bool al_init_qoi() { return insane; } +bool al_init_qoi_font() { + int insane = 0; + insane |= al_register_font_loader(".qoi", _al_load_bitmap_font); + return insane; +} + #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/allegro_qoi.h b/allegro_qoi.h index 4bf1e9a..162119a 100644 --- a/allegro_qoi.h +++ b/allegro_qoi.h @@ -10,6 +10,7 @@ extern "C" { //bool _al_identify_qoi(ALLEGRO_FILE* f); bool al_init_qoi(); +bool al_init_qoi_font(); #ifdef __cplusplus }