Files
fastfetch/src/common/font.h
T

25 lines
595 B
C
Raw Normal View History

2022-07-25 13:44:55 +02:00
#pragma once
#include "util/FFstrbuf.h"
#include "util/FFlist.h"
typedef struct FFfont
{
FFstrbuf pretty;
FFstrbuf name;
FFstrbuf size;
FFlist styles;
} FFfont;
2023-06-13 10:57:52 +08:00
void ffFontInit(FFfont* font);
2022-07-25 13:44:55 +02:00
void ffFontInitQt(FFfont* font, const char* data);
void ffFontInitPango(FFfont* font, const char* data);
void ffFontInitValues(FFfont* font, const char* name, const char* size);
2022-09-17 14:52:29 +08:00
void ffFontInitWithSpace(FFfont* font, const char* rawName);
2022-07-25 13:44:55 +02:00
void ffFontDestroy(FFfont* font);
2023-12-28 15:42:07 +08:00
static inline void ffFontInitCopy(FFfont* font, const char* name)
{
ffFontInitValues(font, name, NULL);
}