mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Font: Show QT before GTK
keeps consistency with other modules
This commit is contained in:
@@ -6,16 +6,22 @@
|
||||
|
||||
static void generateString(FFFontResult* font)
|
||||
{
|
||||
ffParseGTK(&font->display, &font->fonts[1], &font->fonts[2], &font->fonts[3]);
|
||||
|
||||
if(font->fonts[0].length > 0)
|
||||
{
|
||||
if(font->display.length > 0)
|
||||
ffStrbufAppendS(&font->display, ", ");
|
||||
|
||||
ffStrbufAppend(&font->display, &font->fonts[0]);
|
||||
ffStrbufAppendS(&font->display, " [QT]");
|
||||
|
||||
for(uint8_t i = 1; i < sizeof(font->fonts) / sizeof(font->fonts[0]); i++)
|
||||
{
|
||||
if(font->fonts[i].length > 0)
|
||||
{
|
||||
ffStrbufAppendS(&font->display, ", ");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ffParseGTK(&font->display, &font->fonts[1], &font->fonts[2], &font->fonts[3]);
|
||||
}
|
||||
|
||||
void ffDetectFontImpl(const FFinstance* instance, FFFontResult* result)
|
||||
|
||||
Reference in New Issue
Block a user