Category / Section
How can I include a custom font to the FontListComboBox dynamically?
1 min read
A Custom font can be included to the font list combo box dynamically. The font source can be set to a path from the system. The following code shows how to browse the font and include it in the FontListComboBox.
[C#]
Syncfusion.Windows.Tools.Controls.FolderBrowser folderBrowser = new FolderBrowser();
if (folderBrowser.ShowDialog(this).Value)
{
pathTextBox.Text = folderBrowser.SelectedDirectory + @"\ ";
FontBox.FontsSource = pathTextBox.Text;
}