Here is an example of how to change the font of UILabel , which uses a dynamic font in NGUI .
The label shows the text in the original font for 2 seconds, then switches to another font (the one you assign to another font in the inspector)
using UnityEngine; using System.Collections; public class ChangeFont : MonoBehaviour { public UILabel label; public Font otherFont; IEnumerator Start() { label.text = "This is a bit of text";
If a raster font was installed on your label , you must assign UIFont to label.bitmapFont .
source share