diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:10:48 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:10:48 +0100 |
| commit | e41cd0d026bfdb6f5925d630243c072b491cb05d (patch) | |
| tree | 0f1be7b884667bdf0d34c55f42310fc0e5091e10 /src | |
| parent | 06cc651cfabe70e86cb465d70b10f7cbf8fea95e (diff) | |
check err
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text.cc b/src/text.cc index 6de3506..94bc6da 100644 --- a/src/text.cc +++ b/src/text.cc @@ -129,7 +129,8 @@ enum font_error_e wayc_font_init(struct font_s* font, if (fterr) return FONT_ERROR_LOAD_FACE; wayc_defer_cond(FT_Done_Face(face), success, true); - FT_Set_Pixel_Sizes(face, 0, font_size); + fterr = FT_Set_Pixel_Sizes(face, 0, font_size); + if (fterr) return FONT_ERROR_LOAD_FACE; struct atlas_s atlas; enum atlas_error_e aterr = |
