generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: TextSize Caculation

Previous Thread :: Next Thread 
Entelicon is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
21 Aug 2016 03:49 PM
use TextScaled, get the TextBounds
generate font size based on the TextBounds.Y/lines
Report Abuse
Skellobit is not online. 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 is not online. 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 is not online. sutes
Joined: 06 Jan 2012
Total Posts: 819
21 Aug 2016 04:08 PM
I'm from OT


Report Abuse
Entelicon is not online. Entelicon
Joined: 06 Nov 2012
Total Posts: 1002
21 Aug 2016 04:27 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image