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

MinionPro-Bold

3 Answers 109 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
jaipal
Top achievements
Rank 1
jaipal asked on 21 May 2018, 07:21 PM

 

I was trying to apply MinionPro-Bold to a block  using the followign statement. 

_TABlock.TextProperties.TrySetFont(new System.Windows.Media.FontFamily("MinionPro-Bold"));

 

But the text isnt converting to bold. Is there anything that i am missing here. 

 

Regards,

JP

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 24 May 2018, 02:33 PM
Hello JP,

In case the font family of the installed font is "MinionPro" then you may try using the other TrySetFont method overload which receives a FontWeight argument as shown below:
_TABlock.TextProperties.TrySetFont(new System.Windows.Media.FontFamily("MinionPro"), FontStyles.Normal, FontWeights.Bold);

If this does not help, you may try registering the font by using FontsRepository class as described in this forum post answer. If this does not help either, you may check the return value of the TryCreateFont method. Value "false" may be indicating some issue with the font file and then you may send this file to us in order to investigate the concrete case.

Regards,
Deyan
Progress Telerik

0
jaipal
Top achievements
Rank 1
answered on 24 May 2018, 04:49 PM

Greetings Deyan,

Please do let me know if the fonts of type OTF are supported . Also the approach that was given to me wasnt working , i am ready to send those Minion Pro otf files to you , Please do let me know the whats the best way to send them. 

 

Regards,

Jaipal V

0
Deyan
Telerik team
answered on 29 May 2018, 08:53 AM
Hello,

OTF files are not supported in our current implementation. We have already logged such feature request. You may vote for it and follow its implementation by following this feedback item. In the description of this item, you will see a possible workaround for converting the font file to TTF font format.

Regards,
Deyan
Progress Telerik

Tags
PdfProcessing
Asked by
jaipal
Top achievements
Rank 1
Answers by
Deyan
Telerik team
jaipal
Top achievements
Rank 1
Share this question
or