Add Custom Fonts
Since R2 2019 SP1 (version 2019.2.618) RadFontDropDownList supports adding custom fonts (fonts that are not currently installed on the local machine). The bellow example shows how you can add the custom font.
Add Custom Font to RadFontDropDownList
using (Stream stream = System.Reflection.Assembly.GetAssembly(this.GetType()).GetManifestResourceStream("_408823_RadRichTextEditorCustomFonts.HelveticaLt.ttf"))
{
ThemeResolutionService.LoadFont(stream);
}
FontFamily ff = ThemeResolutionService.GetCustomFont("Helvetica-Light");
this.radFontDropDownList1.AddFont(ff);
Using stream As Stream = System.Reflection.Assembly.GetAssembly(Me.GetType()).GetManifestResourceStream("_408823_RadRichTextEditorCustomFonts.HelveticaLt.ttf")
ThemeResolutionService.LoadFont(stream)
End Using
Dim ff As FontFamily = ThemeResolutionService.GetCustomFont("Helvetica-Light")
Me.RadFontDropDownList1.AddFont(ff)
The font can be easily removed as well.
Remove Custom Font from RadFontDropDownList
this.radFontDropDownList1.RemoveFont(ff);
Me.RadFontDropDownList1.RemoveFont(ff)