mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
19 lines
361 B
C
19 lines
361 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 NULL;
|
|
}
|
|
|
|
return "No fonts found";
|
|
}
|