Welcome,
Guest
. Please
login
or
register
.
February 17, 2025, 10:04:49 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Character Spacing on UILabel
« previous
next »
Print
Pages: [
1
]
Author
Topic: Character Spacing on UILabel (Read 5798 times)
Mattivc
Guest
Character Spacing on UILabel
«
on:
June 13, 2012, 04:38:06 AM »
I'm trying to extend the UILabel to allow for the ability to add X pixels of extra spacing between each character. But i am having a bit of a trouble tracking down where the actual position of each letter is determent.
Can someone point me in the right direction?
Logged
PhilipC
Guest
Re: Character Spacing on UILabel
«
Reply #1 on:
June 13, 2012, 08:02:56 AM »
It is all done in UIFont. The easiest way to add spacing would be to change the export setting when creating the font from BMFont. This way when NGUI reads the definition file (txt) it will add the extra space.
Logged
ryan
Jr. Member
Thank You
-Given: 0
-Receive: 1
Posts: 90
Re: Character Spacing on UILabel
«
Reply #2 on:
June 13, 2012, 12:01:34 PM »
The UIFont inspector also lets you adjust X and Y spacing, which may do what you want. It will apply to all labels using that font, but you could create multiple font prefabs using the same bitmap to get different spacing for different labels.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Character Spacing on UILabel