Page 1 of 1

How to enforce font family style to HTML text

Posted: Tue Jan 28, 2025 9:23 pm
by nirav.blitzm
Hi,

I am designing a report and I am expecting HTML content from the data source with different font families (attached sample data.json file).

However when rendering the HTML content onto the report I would like the font family to be changed to Tahoma for all HTML content to ensure consistency. I have configured Tahoma as font family but when previewing the report, Stimulsoft is not enforcing Tahoma font family at all. When previewing the report, I can see text printed with different font family as defined in data source.

Is there any way to enforce font family? Not sure If I am missing any configuration here.

Cheers.

Re: How to enforce font family style to HTML text

Posted: Tue Jan 28, 2025 10:37 pm
by Lech Kulikowski
Hello,

Please check the following data:
<font face="Arial">Hello world</font> <font face="Roboto">Child node</font>
https://www.stimulsoft.com/en/documenta ... nt_tag.htm

Thank you.