i tried to change the font of all objects on my single form, windows forms application(c#):
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
PrivateFontCollection PrivateFontCollection = new PrivateFontCollection();
PrivateFontCollection.AddFontFile(GetFontFilename());
Application.Run(new MainForm(new Font(PrivateFontCollection.Families[0], 12)));
i was successful except that the title text of the form(MainForm.Text) does not get changed to my desired font. i've tried setting the Font property in the constructor and also setting the Font property after the construction of the MainForm with no success.
it might be worth noting that the font that i'm using is a right to left persian font.
how can i change the font of the Form.Text property to a custom font?