How to update font size list

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

How to update font size list

Post by nirav.blitzm »

Hi there,

I would like to add new font sizes when formatting text content as HTML. The current font size list is missing 9pt, 11pt, 13pt and I require those options on dropdown.
Screenshot 2025-01-28 at 9.56.37 pm.png
Screenshot 2025-01-28 at 9.56.37 pm.png (92.08 KiB) Viewed 5974 times
Is there any chance I can override the list or add new option to font size list for Stimulsoft Designer component?

Cheers
Lech Kulikowski
Posts: 7295
Joined: Tue Mar 20, 2018 5:34 am

Re: How to update font size list

Post by Lech Kulikowski »

Hello,

We have added this task to our to-do list.

Thank you.
#16561
Lech Kulikowski
Posts: 7295
Joined: Tue Mar 20, 2018 5:34 am

Re: How to update font size list

Post by Lech Kulikowski »

Hello,

We use the standard wysiwyg editor supported by browsers.
If you look at the documentation, the document.execCommand(“fontSize”, false, 1 - 7) only accepts values from 1 to 7, which corresponds to discrete font sizes [xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large, xxx-large].

Thank you.
Attachments
photo_2025-01-30_10-29-24.jpg
photo_2025-01-30_10-29-24.jpg (150.71 KiB) Viewed 5873 times
Post Reply