How to enforce font family style to HTML text

Stimulsoft Reports.JS discussion
Post Reply
nirav.blitzm
Posts: 8
Joined: Sun Jan 19, 2025 9:45 pm

How to enforce font family style to HTML text

Post 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.
Attachments
Screenshot 2025-01-29 at 8.17.17 am.png
Screenshot 2025-01-29 at 8.17.17 am.png (349.18 KiB) Viewed 4981 times
data.json
(162 Bytes) Downloaded 40 times
Report.mrt
(2.83 KiB) Downloaded 45 times
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: How to enforce font family style to HTML text

Post 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.
Post Reply