Category / Section
How can I include a custom font to the FontListBox dynamically?
1 min read
Custom font can be included to the FontListBox dynamically. Font source can set to a path from the system. The following code shows how to browse the font and included to the FontListBox.
[C#]
FolderBrowser folderBrowser = new FolderBrowser(); if (folderBrowser.ShowDialog(this).Value) pathTextBox.Text = folderBrowser.SelectedDirectory + @" \ " ; fontListBox.FontsSource = pathTextBox.Text;