Entelicon
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 1002 |
|
|
| 21 Aug 2016 03:48 PM |
I need to find the TextSize that would best fit a TextLabel
A thing I thought about was having a table with the possible values, get the height of the TextLabel and find the nearest value from the to one in the table.
Anybody done this before?
I know there is TextScaled but I have a specific situation where that wont work |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2016 03:49 PM |
use TextScaled, get the TextBounds generate font size based on the TextBounds.Y/lines |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 21 Aug 2016 03:50 PM |
umm TextScaled does this automatically, why can't you use it?
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
Entelicon
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 1002 |
|
|
| 21 Aug 2016 04:06 PM |
@ thedailyblarg
I was really hoping that solution would work, but TextScaled does not affect TextBounds like you were saying it would. It still reads off the static TextSize and bases it off that(sadly)
any more ideas? |
|
|
| Report Abuse |
|
|
sutes
|
  |
| Joined: 06 Jan 2012 |
| Total Posts: 819 |
|
| |
|
Entelicon
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 1002 |
|
| |
|