Category / Section
How can I set the font source to system font source and custom collection font source?
1 min read
The source of the font can be set to system font and custom collection source. It can be done as follows :
[C#]
//System font source fontListBox.FontsSource = "System"; //custom font collection source FontCollection collection = new FontCollection(); collection.Add(new FontFamily("Albertus")); collection.Add(new FontFamily("Times")); collection.Add(new FontFamily("Tahoma")); collection.Add(new FontFamily("Webdings")); collection.Add(new FontFamily("Arial")); collection.Add(new FontFamily("Algerian")); fontListBox.FontsSource = collection;