Hi all/ArenMook,
First our problem. Our artists have used many different font scales prior to NGUI 3.0.0 by setting scale to a value other than the line height of the font on UILabels in an existing project. This font is not a dynamic font, partly due to some in texture post-processing and partly due to font license issues preventing possible distribution of the TTF in question. When migrating to NGUI 3, all these scales got lost, as this feature is not supported (especially for widgets that are multi-line - single line widgets will obviously work just by setting a height and 'Shrink Content').
I'd just like to file a feature request really - the ability to specify a 'font scale' on a UI Label widget, in order to have a single font be scaled to fit multiple specific sizes on a per label basis. This is predominantly to assist in migration to NGUI 3.0.2.
Obviously there are ways around this for a new project:
* Creating multiple font prefabs based on the same bitmap (for non-dynamic fonts) with different pixel sizes will achieve the same end.
* Scaling widgets overall will also achieve this, but makes sizes confusing, and this also is non-desirable.
* Dynamic fonts facilitate having as many font sizes as you like.
We've made the change in our copy of NGUI - it's pretty straightforward:
* Add float mFontScale to UILabel.
* Apply it by multiplying mFont.size by it when computing printSize in ProcessText.
* Add inspector code for it in the UILabelInspector.
As I say - there are clearly ways around this, and I understand if the feature is deemed undesirable, but it's greatly smoothed over the process of migrating our project to NGUI 3.
Cheers,
Jeremy