Stretch to fit text but only if text is too wide for box

TheMoo_spl

New Member
Hi! I currently have the problem in the title - I'm not even sure if its possible
I want the text to display normally, with the correct font size, if it is shorter than the bounding box width. But if the text larger than the box width, I want obs to squash the text to fit in the box, but keeping the height of the font.

I know "Stretch to fit" can squash the text but it also makes short text stretch to fit the box, whereas I only want to squash.

I can't go and change the bounding box settings mid-stream as its a tournament I'm streaming with multiple names that could be any size. I need it to be automatic
 
If the text is too large, you do not want to switch fonts (ie. form Arial to Arial Narrow) nor fontsize. So what you actually want to change is the kerning, the space between the characters, right? As far as I know this is not supported.

Please be aware that even if it were possible, it only has a limited use. In the example below with 36 characters (I guess there's a space after the) one or two characters can be squeezed in... but probably not the remaining 8 characters. So if names could be any size I guess you have to make an assumption about what would be reasonable name lengths. Or do a bit of research on (previous?) participants lists. Based on that you'd decide on font size, positioning, etc.

text-does-not-fit.png

text-fitted-77%.png

Fit to screen reduces font size to 77%.
 
If the text is too large, you do not want to switch fonts (ie. form Arial to Arial Narrow) nor fontsize. So what you actually want to change is the kerning, the space between the characters, right? As far as I know this is not supported.

Please be aware that even if it were possible, it only has a limited use. In the example below with 36 characters (I guess there's a space after the) one or two characters can be squeezed in... but probably not the remaining 8 characters. So if names could be any size I guess you have to make an assumption about what would be reasonable name lengths. Or do a bit of research on (previous?) participants lists. Based on that you'd decide on font size, positioning, etc.

View attachment 79758
View attachment 79759
Fit to screen reduces font size to 77%.
I understand what you mean, but its not the kerning I want.
It would be as shown below. I want to change the ratio of the height and width depending if it fits within the bounding box. If it fits, it doesn't change anything. If it doesn't fit, it'll squash like in the 2nd picture.
1643902926218.png

1643902970208.png



Currently, stretch to bounds will change the height x width ratio when text is shorter than the bounding box, like below, but I want it to be the way the first image is if the text is shorter than the bounding box.
1643903045442.png


I presume from what you've said though, that this may not be possible?
 
Back
Top