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/common/font.h | |
Add the files
Diffstat (limited to 'src/common/font.h')
| -rw-r--r-- | src/common/font.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/common/font.h b/src/common/font.h new file mode 100644 index 0000000..f9d25e7 --- /dev/null +++ b/src/common/font.h @@ -0,0 +1,25 @@ +#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); +} |