[#5117] - Auto reduce font size to fit text field

Category:
Feature request
Priority:
High
Status:
Feedback Requested
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:
29

Feature request to enable font size to be automatically reduced at report generation time to fit text to a fixed dimension text box (text retrieved from a data source).

Note: My company is willing to sponsor this enhancement, subject to agreeable terms.

bradc's picture
5
Joined: Nov 9 2010 - 11:22pm
Last seen: 2 years 3 months ago

5 Comments:

#1

Any update? It is pretty desirable feature. Some other products like "List & Label" have this feature.

#2
#3

Unfortunately at the moment it is the only solution, but it is so dirty.
How can you calculate the style according to the length of the string? f.e. compare two strings with length 5:
WWWWW
lllll
In rendered report this two strings in the same field will have totally different length.
F.e. there is such project as List&Label and it has in textfield parameter fit: shrink, break, cut...

#4
  • Status:New» Feedback Requested

Hi,

If we are to implement such feature, there are some questions that need to be answered first.

We are talking here about decreasing the font size so that the full text fits in the design time element size.

But since the text value could be styled text and different chunks of text have different font size, I guess the issue is about decreasing the font size for all chunks using a ratio.
So it is not about decreasing font size point by point, but rather decrease it with a ratio, especially considering that nowadays font size is no longer only integer values.

This is a little bit tricky because I assume not all export formats support the same precision when it comes to font size, so in some cases we would need to truncate or round up non integer font size values, resulting in the original styled text chunks becoming disproportionate with each other.

Thanks,
Teodor

#5

I agree. I would also like to see a feature for "fit", which scales it down OR up to use the available field space. Not sure it needs to super complicated, I'd personally be happy it it went integer value at a time to each font size iteratively until it fill the area. (I don't have mixed/styled text anyway)

Feedback