mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 11:10:59 +01:00
TerminalFont (Windows): adds style detection support for warp terminal
This commit is contained in:
@@ -289,6 +289,13 @@ static void detectWarp(FFTerminalFontResult* terminalFont)
|
||||
}
|
||||
|
||||
ffFontInitValues(&terminalFont->font, fontName.chars, fontSize.chars);
|
||||
|
||||
FFstrbuf* fontWeight = (FFstrbuf*) ffListAdd(&terminalFont->font.styles);
|
||||
ffStrbufInit(fontWeight);
|
||||
if (ffRegReadStrbuf(key, L"FontWeight", fontWeight, NULL))
|
||||
ffStrbufTrim(fontWeight, '"');
|
||||
else
|
||||
ffStrbufSetStatic(fontWeight, "Normal");
|
||||
}
|
||||
|
||||
bool ffDetectTerminalFontPlatform(const FFTerminalResult* terminal, FFTerminalFontResult* terminalFont)
|
||||
|
||||
Reference in New Issue
Block a user