From cf3e6ac4c968b09b4e431b111162aea6041f47a6 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 12:48:08 +0100 Subject: load font manually --- src/text.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index ec0b4fe..cfd7a00 100644 --- a/src/text.h +++ b/src/text.h @@ -1,6 +1,7 @@ #pragma once #include "freetype/freetype.h" +#include "utils.h" enum font_context_error_e { FONT_CONTEXT_ERROR_NONE, @@ -16,10 +17,12 @@ void wayc_font_context_deinit(struct font_context_s* ctx); enum font_error_e { FONT_ERROR_NONE, - FONT_ERROR_LOAD, + FONT_ERROR_FILE_LOAD, + FONT_ERROR_FONT_LOAD, }; struct font_s { + u8* data; FT_Face face; }; -- cgit v1.2.3