mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +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 ```
26 lines
793 B
C
26 lines
793 B
C
#pragma once
|
|
|
|
#include "common/FFstrbuf.h"
|
|
#include "common/FFlist.h"
|
|
|
|
typedef struct FFfont {
|
|
FFstrbuf pretty;
|
|
FFstrbuf name;
|
|
FFstrbuf size;
|
|
FFlist styles;
|
|
} FFfont;
|
|
|
|
void ffFontInit(FFfont* font);
|
|
void ffFontInitQt(FFfont* font, const char* data);
|
|
void ffFontInitPango(FFfont* font, const char* data);
|
|
void ffFontInitValues(FFfont* font, const char* name, const char* size);
|
|
void ffFontInitXlfd(FFfont* font, const char* xlfd);
|
|
void ffFontInitXft(FFfont* font, const char* xft);
|
|
void ffFontInitMoveValues(FFfont* font, FFstrbuf* name, FFstrbuf* size, FFstrbuf* style);
|
|
void ffFontInitWithSpace(FFfont* font, const char* rawName);
|
|
void ffFontDestroy(FFfont* font);
|
|
|
|
static inline void ffFontInitCopy(FFfont* font, const char* name) {
|
|
ffFontInitValues(font, name, NULL);
|
|
}
|