diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 09:55:47 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 09:55:47 +0100 |
| commit | 9f6a7d71b179b72a12790a9d363789240003e20a (patch) | |
| tree | e5dd7193cf60421ce71964ada611613189bb3fdc /src/text.h | |
| parent | 228173ca185d4da22dce3318e07bc6ac65dfe32a (diff) | |
integrate freetype and load it
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,7 +1,15 @@ #pragma once -#include "utils.h" -#include "vec.h" +#include "freetype/freetype.h" +enum font_context_error_e { + FONT_CONTEXT_ERROR_NONE, + FONT_CONTEXT_ERROR_LIBRARY, +}; -struct font_s {}; +struct font_context_s { + FT_Library library; +}; + +enum font_context_error_e wayc_font_context_init(struct font_context_s* ctx); +void wayc_font_context_deinit(struct font_context_s* ctx); |
