mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 12:14:19 +01:00
TerminalFont (macOS): detect non-ascii font of iTerm
This commit is contained in:
@@ -10,6 +10,7 @@ typedef struct FFTerminalFontResult
|
||||
{
|
||||
FFstrbuf error;
|
||||
FFfont font;
|
||||
FFfont fallback;
|
||||
} FFTerminalFontResult;
|
||||
|
||||
bool ffDetectTerminalFont(FFTerminalFontResult* result);
|
||||
|
||||
@@ -38,6 +38,14 @@ static void detectIterm2(FFTerminalFontResult* terminalFont)
|
||||
return;
|
||||
}
|
||||
ffFontInitWithSpace(&terminalFont->font, normalFont.UTF8String);
|
||||
|
||||
NSNumber* useNonAsciiFont = [bookmark valueForKey:@"Use Non-ASCII Font"];
|
||||
if(useNonAsciiFont.boolValue)
|
||||
{
|
||||
NSString* nonAsciiFont = [bookmark valueForKey:@"Non Ascii Font"];
|
||||
if (nonAsciiFont)
|
||||
ffFontInitWithSpace(&terminalFont->fallback, nonAsciiFont.UTF8String);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user