diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/font/font.h | |
Add the files
Diffstat (limited to 'src/detection/font/font.h')
| -rw-r--r-- | src/detection/font/font.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/detection/font/font.h b/src/detection/font/font.h new file mode 100644 index 0000000..af04c6d --- /dev/null +++ b/src/detection/font/font.h @@ -0,0 +1,20 @@ +#pragma once + +#include "fastfetch.h" +#include "modules/font/option.h" + +enum { FF_DETECT_FONT_NUM_FONTS = 4 }; + +typedef struct FFFontResult { + /** + * Linux / BSD: Qt, GTK2, GTK3, GTK4 + * MacOS: System, User, System Mono, User Mono + * Windows: Caption, Menu, Message, Status + * Haiku: Plain, Menu, Bold, Mono + * Other: Unset, Unset, Unset, Unset + */ + FFstrbuf fonts[FF_DETECT_FONT_NUM_FONTS]; + FFstrbuf display; +} FFFontResult; + +const char* ffDetectFont(FFFontResult* font); |