Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mishaps on September 21, 2013, 11:21:39 PM

Title: NGUI 3.0 different label sizes all using same font
Post by: mishaps on September 21, 2013, 11:21:39 PM
in 2.7 I had a font I re-scaled as needed for different sized labels. In 3.0 I understand I'm suppose to leave scale alone and use dimensions instead, sounds cool 8)
However, now the only way I can change the font size is with overflow to Shrink Content or by using scale. With Shrink Content it is hard for me to maintain consistent font sizes with different width labels throughout my GUI.

Is it okay to just use scale in this context or I am using UILabel wrong?
Title: Re: NGUI 3.0 different label sizes all using same font
Post by: ArenMook on September 22, 2013, 01:45:32 AM
I think you're confusing that with UnityGUI. In uGUI you can specify the font size on the labels. In NGUI you specify it on the font.
Title: Re: NGUI 3.0 different label sizes all using same font
Post by: mishaps on September 22, 2013, 02:27:06 AM
I have lots of different font sizes throughout my UI and it seems inefficient making a separate ngui-font for each one - won't that make lots of different font-altases for the same font?
Way I've always worked was make a single ngui bitmap-font for each font. I'd then assign it to a label and scale that label up or down to whatever size I needed the text to be.
I'm all for changing how I work, just haven't found a way to get consistent sizes easily with dimensions yet. Maybe a separate ngui-font for each major size then just let the artist re-scale from them for any minor size variations?
Title: Re: NGUI 3.0 different label sizes all using same font
Post by: ArenMook on September 22, 2013, 03:23:42 AM
No, dynamic fonts share the same material and texture (if you're using the same TTF), so it's not inefficient.
Title: Re: NGUI 3.0 different label sizes all using same font
Post by: mishaps on September 22, 2013, 03:40:39 AM
cheers man thanks for the info. I'll try moving it over to dynamic fonts  8)