Files
fastfetch/src/detection/font/font.c
T

19 lines
361 B
C
Raw Normal View History

2022-09-29 14:15:11 +02:00
#include "font.h"
const char* ffDetectFontImpl(FFFontResult* font);
2022-09-29 14:15:11 +02:00
const char* ffDetectFont(FFFontResult* font)
2022-09-29 14:15:11 +02:00
{
const char* error = ffDetectFontImpl(font);
2022-09-29 14:15:11 +02:00
2023-06-12 22:36:43 +08:00
if(error) return error;
2022-09-29 14:15:11 +02:00
for(uint32_t i = 0; i < FF_DETECT_FONT_NUM_FONTS; ++i)
{
if(font->fonts[i].length > 0)
2023-06-12 22:36:43 +08:00
return NULL;
2022-09-29 14:15:11 +02:00
}
2023-06-12 22:36:43 +08:00
return "No fonts found";
2022-09-29 14:15:11 +02:00
}