FairyGUI.DynamicFont.DynamicFont C# (CSharp) Method

DynamicFont() public method

public DynamicFont ( string name ) : System
name string
return System
        public DynamicFont(string name)
        {
            this.name = name;
            this.canTint = true;
            this.canOutline = true;
            this.hasChannel = false;
            this.keepCrisp = true;

            if (UIConfig.renderingTextBrighterOnDesktop && !Application.isMobilePlatform)
            {
                this.shader = ShaderConfig.textBrighterShader;
                this.canLight = true;
            }
            else
                this.shader = ShaderConfig.textShader;

            //The fonts in mobile platform have no default bold effect.
            if (name.ToLower().IndexOf("bold") == -1)
                this.customBold = Application.isMobilePlatform;

            _cachedBaseline = new Dictionary<int, int>();

            LoadFont();
        }