master ohmu/fastfetch-openbsd / src / detection / font / font.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/font/option.h"
 5
 6enum { FF_DETECT_FONT_NUM_FONTS = 4 };
 7
 8typedef struct FFFontResult {
 9    /**
10     * Linux / BSD: Qt,      GTK2,  GTK3,        GTK4
11     * MacOS:       System,  User,  System Mono, User Mono
12     * Windows:     Caption, Menu,  Message,     Status
13     * Haiku:       Plain,   Menu,  Bold,        Mono
14     * Other:       Unset,   Unset, Unset,       Unset
15     */
16    FFstrbuf fonts[FF_DETECT_FONT_NUM_FONTS];
17    FFstrbuf display;
18} FFFontResult;
19
20const char* ffDetectFont(FFFontResult* font);