How can I have the text scale to fit the bounds I gave it?
相关问题
- NSOutlineView drag line stuck + blue border
- iphone sdk see size of local file (one created
- how do I properly position & scale these elements
- How can you detect the connection and disconnectio
- QuickLook Plugin Failing with sandboxing error
相关文章
- Converting (u)int64_t to NSNumbers
- Can Persistence Ignorance Scale?
- “getter” keyword in @property declaration in Objec
- NSMenuItem KeyEquivalent “ ”(space) bug
- Can i use Calc inside Transform:Scale function in
- Detect if cursor is hidden on Mac OS X
- NSNumberFormatter doesn't allow typing decimal
- Is subclassing NSNotification the right route if I
I've done something like this in the past.
The string variable is the text you want sized. The xMargin and yMargin variables are for spacing that you want. The minFontSize and maxFontSize variables give limits to how small or large you want to go.