I have a Windows Forms application where I need to make all the fonts of all user interface elements customizable from a separate file. That is, I want to be able to indicate that the label has a "TitleBarBoldFont" font that will allow the real font to be dependent on the current locale. The configuration file may contain the appropriate section:
<Font fontID="TitleBarBoldFont">
<Display facename="Helvetica" pointSize="12">
<Override lang="ja" facename="Meiryo Bold" pointSize="12"/>
<Override lang="zh" facename="SimHei" pointSize="12"/>
<Override lang="ru" facename="Arial Bold" pointSize="12"/>
</Display>
</Font>
My question is: is there a standard .NET / Windows Forms way to do this so that I can specify my custom fonts in the WinForms designer and do not have to explicitly call the font resolution method for each GUI element in the code?