mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
28 lines
803 B
C
28 lines
803 B
C
#include "detection/qt.h"
|
|
#include "detection/gtk.h"
|
|
#include "common/font.h"
|
|
#include "font.h"
|
|
|
|
void ffDetectFontImpl(const FFinstance* instance, FFFontResult* result)
|
|
{
|
|
FFfont qt;
|
|
ffFontInitQt(&qt, ffDetectQt(instance)->font.chars);
|
|
ffStrbufAppend(&result->fonts[0], &qt.pretty);
|
|
ffFontDestroy(&qt);
|
|
|
|
FFfont gtk2;
|
|
ffFontInitPango(>k2, ffDetectGTK2(instance)->font.chars);
|
|
ffStrbufAppend(&result->fonts[1], >k2.pretty);
|
|
ffFontDestroy(>k2);
|
|
|
|
FFfont gtk3;
|
|
ffFontInitPango(>k3, ffDetectGTK3(instance)->font.chars);
|
|
ffStrbufAppend(&result->fonts[2], >k3.pretty);
|
|
ffFontDestroy(>k3);
|
|
|
|
FFfont gtk4;
|
|
ffFontInitPango(>k4, ffDetectGTK4(instance)->font.chars);
|
|
ffStrbufAppend(&result->fonts[3], >k4.pretty);
|
|
ffFontDestroy(>k4);
|
|
}
|