Articles in this section
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 a 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;



Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied