2022-07-25 13:44:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifndef FF_INCLUDED_common_font
|
|
|
|
|
#define FF_INCLUDED_common_font
|
|
|
|
|
|
|
|
|
|
#include "util/FFstrbuf.h"
|
|
|
|
|
#include "util/FFlist.h"
|
|
|
|
|
|
|
|
|
|
typedef struct FFfont
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf pretty;
|
|
|
|
|
FFstrbuf name;
|
|
|
|
|
FFstrbuf size;
|
|
|
|
|
FFlist styles;
|
|
|
|
|
} FFfont;
|
|
|
|
|
|
|
|
|
|
void ffFontInitQt(FFfont* font, const char* data);
|
|
|
|
|
void ffFontInitPango(FFfont* font, const char* data);
|
|
|
|
|
void ffFontInitCopy(FFfont* font, const char* name);
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
#endif
|