How to get the Enviroment Font information of Visual Studio in real time .
I want to get the real time latest Environment font information of visual studio using c# dot net. Is there any listeners available and a method to get the latest current visual studio environment font information I am calling this method
System.Drawing.Font font = VsShellUtilities.GetEnvironmentFont();
var fontfamily = font.Name;
var fontsize = String.Format("{0}pt", font.SizeInPoints);
in the VSColorTheme.ThemeChanged
event it also some how listens the font change event also but the problem with this is when we change the font 1st time it does not give me the latest value from 2nd time onwards if i change it works fine. and also if i change the theme first and then onwards I change the fonts it works fine everything is in real time i am talking about.
C#, visual studio 2022