font weight pdfProcessing

1 Answer 402 Views
PdfProcessing
n/a
Top achievements
Rank 1
Iron
Iron
Iron
n/a asked on 15 Feb 2022, 11:05 AM

Hi there,

What is the easiest way to change the font weight of a text? 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Svilen
Telerik team
answered on 17 Feb 2022, 08:05 AM

Hello, Astig,

Svilen here, I will be glad to help out with this question. The easiest way would be to use the Block.InsertText() method, which has a constructor that lets you select the font, its style, and weight. Here is a code snippet showing how to do so: 

block.InsertText(new FontFamily("Arial"), FontStyles.Italic, FontWeights.Bold, "Text"); 

More information about Blocks might be useful, so I am sharing our help article on the matter here. Please let me know if I can further assist. Have a great day!

Regards,
Svilen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

n/a
Top achievements
Rank 1
Iron
Iron
Iron
commented on 17 Feb 2022, 09:01 AM

Thank you very much Svilen!
Tags
PdfProcessing
Asked by
n/a
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Svilen
Telerik team
Share this question
or