From 76424950e373d3b04ac3dd13019151bfba3e8423 Mon Sep 17 00:00:00 2001 From: sumuel Date: Mon, 17 Aug 2026 20:44:55 +0000 Subject: Add the files --- src/detection/font/font.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/detection/font/font.c (limited to 'src/detection/font/font.c') diff --git a/src/detection/font/font.c b/src/detection/font/font.c new file mode 100644 index 0000000..c651f29 --- /dev/null +++ b/src/detection/font/font.c @@ -0,0 +1,19 @@ +#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"; +} -- cgit v1.2.3