How to change the default font used for rendering the HTML document in the HTMLUI control?
3 Sep 2020 / 1 minute to read
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. You can change this default font by using the DefaultFormat.Font property, written while initializing the HTMLUI control.
htmluiControl1 = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl();
htmluiControl1.DefaultFormat.Font = new Font("Pristina",16);
Private htmluiControl1 = New Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl()
Private htmluiControl1.DefaultFormat.Font = New Font("Pristina",16)
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page