master ohmu/fastfetch-openbsd / src / detection / font / font.c
ohmu  ·  2026-10-15
 1#include "font.h"
 2
 3const char* ffDetectFontImpl(FFFontResult* font);
 4
 5const char* ffDetectFont(FFFontResult* font) {
 6    const char* error = ffDetectFontImpl(font);
 7
 8    if (error) {
 9        return error;
10    }
11
12    for (uint32_t i = 0; i < FF_DETECT_FONT_NUM_FONTS; ++i) {
13        if (font->fonts[i].length > 0) {
14            return nullptr;
15        }
16    }
17
18    return "No fonts found";
19}