I need a way to detect which font is currently in use by PowerShell, so I can emit certain characters (glyphs) from that font, if it's active. However, if the font is not active, I need to know, so that I can avoid emitting those glyphs from a module.
Question: Is there a way to detect which font is currently in use in a PowerShell session, running in iTerm2 (Mac), or VSCode, or Windows Terminal, for example?
I checked the built-in $Host variable to see if it had anything like that, but there aren't any font-related properties, aside from the foreground color.
ForegroundColor : Gray
BackgroundColor : Black
CursorPosition : 0,43
WindowPosition : 0,0
CursorSize : 25
BufferSize : 164,44
WindowSize : 164,44
MaxWindowSize : 164,44
MaxPhysicalWindowSize : 3824,132
KeyAvailable : True
WindowTitle : PowerShell