Files
fastfetch/src/detection/font/font.c
T
2026-07-10 18:10:09 +08:00

20 lines
391 B
C

#include "font.h"
const char* ffDetectFontImpl(FFFontResult* font);
const char* ffDetectFont(FFFontResult* font) {
const char* error = ffDetectFontImpl(font);
if (error) {
return error;
}
for (uint32_t i = 0; i < FF_DETECT_FONT_NUM_FONTS; ++i) {
if (font->fonts[i].length > 0) {
return nullptr;
}
}
return "No fonts found";
}