mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
20 lines
391 B
C
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";
|
|
}
|