1
NGUI 3 Support / Re: Dynamic font support for NGUI
« on: January 10, 2013, 10:18:21 PM »Ok I *think* I might have something that makes more sense.it still works not perfectily, I use YouYuan font, size 16 and test UILabel with char size 16, 64. Here is the result.
No more magic number, it relies on the font import size (which unfortunately can't be accessed from code, it seems, so I set the value to a constant 16, since when you import a font, its size is set to 16.
zh4ox, can you test this and tell me what you think?
All the text is above the baseline, btw, 0.8203215f is not real magic number, it' seems the baseline of font size 1, and I have modified ur code, as u wish, now there r no limitation on font asset's size. Here is my result
U can test the modification on your machine