This is a migrated thread and some comments may be shown as answers.

Default font and font size

1 Answer 167 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Duncan
Top achievements
Rank 1
Duncan asked on 03 Aug 2011, 02:50 PM
Hi
Is it possible to change the default font and font size? It always uses Calibri at size 12.  I've changed the Font property on the ribbon and also on the RadRichTextBox as well but it still defaults to Calibri.
Thanks
Matthew

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Aug 2011, 04:01 PM
Hi Duncan,

Thank you for writing.

Please refer to the following code snippet, which gives you the desired functionality:
RadDocument doc = new RadDocument();
Section section = new Section();
 
Paragraph paragraph = new Paragraph();
paragraph.FontSize = 32;
 
section.Blocks.Add(paragraph);
doc.Sections.Add(section);
 
this.radRichTextBox1.Document = doc;

I hope that you find this information useful.

Best wishes,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RibbonBar
Asked by
Duncan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or