mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
e0eba8ce21
```bash find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i ```
21 lines
566 B
C
21 lines
566 B
C
#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);
|