Category / Section
How to change the default font used for rendering the HTML document in the WinForms HTMLUIControl?
1 min read
Font settings
HTMLUI uses a default font to render the text from the HTML document, in cases where there are no specifications for the font to be used. This font can be changed through the DefaultFormat property written while initializing the HTMLUI control.
C#
htmluiControl1 = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl(); htmluiControl1.DefaultFormat.Font = new Font("Pristina",16);
VB
Private htmluiControl1 = New Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl() Private htmluiControl1.DefaultFormat.Font = New Font("Pristina",16)