Files
fastfetch/src/detection/font/font_linux.c
T

27 lines
787 B
C
Raw Normal View History

2022-09-25 18:21:08 +08:00
#include "common/font.h"
2023-02-14 17:46:21 +08:00
#include "detection/gtk_qt/gtk_qt.h"
2022-09-25 18:21:08 +08:00
#include "font.h"
2022-09-29 14:15:11 +02:00
void ffDetectFontImpl(const FFinstance* instance, FFFontResult* result)
2022-09-25 18:21:08 +08:00
{
2022-09-29 14:15:11 +02:00
FFfont qt;
ffFontInitQt(&qt, ffDetectQt(instance)->font.chars);
ffStrbufAppend(&result->fonts[0], &qt.pretty);
ffFontDestroy(&qt);
FFfont gtk2;
ffFontInitPango(&gtk2, ffDetectGTK2(instance)->font.chars);
ffStrbufAppend(&result->fonts[1], &gtk2.pretty);
ffFontDestroy(&gtk2);
FFfont gtk3;
ffFontInitPango(&gtk3, ffDetectGTK3(instance)->font.chars);
ffStrbufAppend(&result->fonts[2], &gtk3.pretty);
ffFontDestroy(&gtk3);
FFfont gtk4;
ffFontInitPango(&gtk4, ffDetectGTK4(instance)->font.chars);
ffStrbufAppend(&result->fonts[3], &gtk4.pretty);
ffFontDestroy(&gtk4);
2022-09-25 18:21:08 +08:00
}