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

HtmlTextBox: font-family

1 Answer 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 25 Oct 2012, 02:08 PM
Hi

I'm using Telerik Reporting Q1 2012. I want to render the following html code in an HtmlTextBox:

<span style="font-family: 'pluto light';">Test</span>


Unfortunately, the text is in Microsoft Sans Serif and not in Pluto Light. I think there is a problem, because the font has a space. With fonts like Verdana it works fine.

Do you have any hint for me?

Thanks,
Chris

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 30 Oct 2012, 09:22 AM
Hello Chris,

The issue should not be related with the space in the font name. For example 
<span style="font-family: comic sans ms; font-size: 16pt">yourtext</span>
is perfectly valid and works without any problem.

Could you please double check that the font you are referring is installed on the computer that runs the Report Viewer (or Visual Studio).
Keep in mind that If you have installed the font while editing the report you will have to restart Visual Studio in order to be able to access the new font.

I hope that helps.

Greetings,
IvanY
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or