Example #1
0
        public UIText(string text, float x, float y, int fontsize, Color color,
                      TextAnchor alignment,
                      HorizontalWrapMode horizontalOverflow, VerticalWrapMode verticalOverflow)
        {
#if UNITY_EDITOR
            Name = "Text";
#endif
            this.textComponent = gameObject.AddComponent <Text>();
            this.textComponent.raycastTarget = false;

            if (FontManager.DefaultFont == null)
            {
                Debug.LogWarning("DefaultFont is null, please call \"FontManager.SetDefaultFont()\" first");
            }

            this.Font               = FontManager.DefaultFont;
            this.FontSize           = fontsize;
            this.Colour             = color;
            this.Alignment          = alignment;
            this.HorizontalOverflow = horizontalOverflow;
            this.VerticalOverflow   = verticalOverflow;
            this.SupportRichText    = false;
            this.Text               = text; //这行代码必须放在HorizontalOverflow VerticalOverflow赋值之后

            SetAnchor(alignment);

            SetPosition(x, y);
        }
Example #2
0
 public TextSpec(
     string text                           = "",
     FontName?font                         = null,
     FontStyle fontStyle                   = FontStyle.Normal,
     int fontSize                          = 14,
     int lineSpacing                       = 1,
     bool shouldSupportRichText            = false,
     TextAnchor alignment                  = TextAnchor.UpperLeft,
     bool alignByGeometry                  = false,
     HorizontalWrapMode horizontalOverflow = HorizontalWrapMode.Wrap,
     VerticalWrapMode verticalOverflow     = VerticalWrapMode.Truncate,
     bool resizeTextForBestFit             = false,
     Color?color                           = null,
     MaterialName?material                 = null,
     bool isRaycastTarget                  = true)
 {
     Text                  = text;
     Font                  = font;
     FontStyle             = fontStyle;
     FontSize              = fontSize;
     LineSpacing           = lineSpacing;
     ShouldSupportRichText = shouldSupportRichText;
     Alignment             = alignment;
     AlignByGeometry       = alignByGeometry;
     HorizontalOverflow    = horizontalOverflow;
     VerticalOverflow      = verticalOverflow;
     ResizeTextForBestFit  = resizeTextForBestFit;
     Color                 = color.GetValueOrDefault(Color.white);
     Material              = material;
     IsRaycastTarget       = isRaycastTarget;
 }
Example #3
0
    protected override void GUI()
    {
        base.GUI();

        Font               font               = Data.DefaultFont;
        FontStyle          fontStyle          = Data.DefaultFontStyle;
        int                fontSize           = Data.DefaultFontSize;
        int                lineSpacing        = Data.DefaultLineSpacing;
        TextAnchor         textAnchor         = Data.DefaultTextAnchor;
        bool               isGeometry         = Data.IsDefaultGeometry;
        HorizontalWrapMode horizontalWrapMode = Data.DefaultHorizontalWrapMode;
        VerticalWrapMode   verticalWrapMode   = Data.DefaultVerticalWrapMode;
        bool               isBestFit          = Data.IsDefaultBestFit;
        Color              fontColor          = Data.DefaultFontColor;

        switch (Type)
        {
        case TextType.Default:
            break;
        }

        text.font                 = font;
        text.fontStyle            = fontStyle;
        text.fontSize             = fontSize;
        text.lineSpacing          = lineSpacing;
        text.alignment            = textAnchor;
        text.alignByGeometry      = isGeometry;
        text.horizontalOverflow   = horizontalWrapMode;
        text.verticalOverflow     = verticalWrapMode;
        text.resizeTextForBestFit = isBestFit;
        text.color                = fontColor;
    }
Example #4
0
    internal void InitializeTextComponent(Font _font, FontStyle _fontStyle, int _fontSize, float _lineSpacing, bool _richText, TextAnchor _alignment,
                                          HorizontalWrapMode _horizontalOverflow, VerticalWrapMode _verticalOverflow, bool _bestFit, int _minSize, int _maxSize, Color32 _color,
                                          string _text, Property <string> _boundProperty = null)
    {
        Text = GameObject.GetComponent <UnityEngine.UI.Text>();
        if (Text == null)
        {
            Text = GameObject.AddComponent <UnityEngine.UI.Text>();
        }

        Text.font                 = _font;
        Text.fontStyle            = _fontStyle;
        Text.fontSize             = _fontSize;
        Text.lineSpacing          = _lineSpacing;
        Text.supportRichText      = true;
        Text.alignment            = _alignment;
        Text.horizontalOverflow   = _horizontalOverflow;
        Text.verticalOverflow     = _verticalOverflow;
        Text.resizeTextForBestFit = _bestFit;
        Text.resizeTextMinSize    = _minSize;
        Text.resizeTextMaxSize    = _maxSize;
        Text.color                = _color;

        Text.raycastTarget = false;

        BoundProperty = _boundProperty;
        if (BoundProperty != null)
        {
            BoundProperty.PropertyChangedEvent += OnPropertyChanged;
        }

        DefaultText = _text;

        UpdateTextComponent();
    }
Example #5
0
 public void SetTextHorizontalOverflow(HorizontalWrapMode mode)
 {
     if (this.text != null)
     {
         this.text.horizontalOverflow = mode;
     }
 }
        internal bool Populate_Internal(
            string str, Font font, Color color,
            int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText,
            bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize,
            VerticalWrapMode verticalOverFlow, HorizontalWrapMode horizontalOverflow, bool updateBounds,
            TextAnchor anchor, Vector2 extents, Vector2 pivot, bool generateOutOfBounds, bool alignByGeometry,
            out TextGenerationError error)
        {
            if (font == null)
            {
                error = TextGenerationError.NoFont;
                return(false);
            }

            uint uerror = 0;
            bool res    = Populate_Internal(
                str, font, color,
                fontSize, scaleFactor, lineSpacing, style, richText,
                resizeTextForBestFit, resizeTextMinSize, resizeTextMaxSize,
                (int)verticalOverFlow, (int)horizontalOverflow, updateBounds,
                anchor, extents.x, extents.y, pivot.x, pivot.y, generateOutOfBounds, alignByGeometry, out uerror);

            error = (TextGenerationError)uerror;
            return(res);
        }
Example #7
0
 /// <summary>
 /// Set the text Horizontal overflow</summary>
 /// <param name="mode">wrap or overflow</param>
 public virtual void SetTextHorizontalOverflow(HorizontalWrapMode mode)
 {
     if (text == null)
     {
         return;
     }
     text.GetComponent <UnityEngine.UI.Text>().horizontalOverflow = mode;
 }
Example #8
0
 public override void CopyFrom(UITextParameters other)
 {
     scale           = other.scale;
     fontStyle       = other.fontStyle;
     horizontalWrap  = other.horizontalWrap;
     lineSpace       = other.lineSpace;
     alignByGeometry = other.alignByGeometry;
 }
Example #9
0
        public static void SetTextHorizontalOverflow(MaskableGraphic text, HorizontalWrapMode mode)
        {
            var instance = text as Text;

            if (instance != null)
            {
                instance.horizontalOverflow = mode;
            }
        }
        public ITextComponent SetTextHorizontalOverflow(HorizontalWrapMode mode)
        {
            if (this.text != null)
            {
                this.text.horizontalOverflow = mode;
            }

            return(this);
        }
Example #11
0
        private void PopulateCachedTextGenerator(string logicalText, HorizontalWrapMode settingsHorizontalOverflow)
        {
            var settings = GetGenerationSettings(rectTransform.rect.size);

            settings.generateOutOfBounds = true;
            // settings.updateBounds = true;
            settings.horizontalOverflow = settingsHorizontalOverflow;

            cachedTextGenerator.Populate(logicalText, settings);
        }
 public static void SetTextHorizontalOverflow(MaskableGraphic text, HorizontalWrapMode mode)
 {
                 #if TEXTMESHPRO_SUPPORTED
     var instance = text as TMPro.TMP_Text;
     if (instance != null)
     {
         instance.overflowMode = (mode == HorizontalWrapMode.Overflow ? TMPro.TextOverflowModes.Overflow : TMPro.TextOverflowModes.Truncate);
     }
                 #endif
 }
 public ParagraphSettings(TextAnchor alignment         = TextAnchor.UpperLeft,
                          HorizontalWrapMode hOverflow = HorizontalWrapMode.Wrap,
                          VerticalWrapMode vOverflow   = VerticalWrapMode.Truncate,
                          bool bestFit = false, bool alignByGeometry = false)
 {
     this.alignment          = alignment;
     this.horizontalOverflow = hOverflow;
     this.verticalOverflow   = vOverflow;
     this.bestFit            = bestFit;
     this.alignByGeometry    = alignByGeometry;
 }
Example #14
0
        public ITextComponent SetTextHorizontalOverflow(HorizontalWrapMode mode)
        {
            if (TextComponentUGUIAddon.IsValid(this.text) == true)
            {
                TextComponentUGUIAddon.SetTextHorizontalOverflow(this.text, mode);
            }
            if (TextComponentTMPAddon.IsValid(this.text) == true)
            {
                TextComponentTMPAddon.SetTextHorizontalOverflow(this.text, mode);
            }

            return(this);
        }
            public ParagraphSettings(ParagraphSettings toCopy)
            {
                if (toCopy == null)
                {
                    NullCopyAlert();
                }

                this.alignment          = toCopy.alignment;
                this.horizontalOverflow = toCopy.horizontalOverflow;
                this.verticalOverflow   = toCopy.verticalOverflow;
                this.bestFit            = toCopy.bestFit;
                this.alignByGeometry    = toCopy.alignByGeometry;
            }
            public ParagraphSettings(Text text)
            {
                if (text == null)
                {
                    NullTextAlert();
                }

                this.alignment          = text.alignment;
                this.horizontalOverflow = text.horizontalOverflow;
                this.verticalOverflow   = text.verticalOverflow;
                this.bestFit            = text.resizeTextForBestFit;
                this.alignByGeometry    = text.alignByGeometry;
            }
Example #17
0
        public float CalculateExpandedHeight(string content)
        {
            string             text     = logText.text;
            HorizontalWrapMode wrapMode = logText.horizontalOverflow;

            logText.text = content;
            logText.horizontalOverflow = HorizontalWrapMode.Wrap;

            float result = logText.preferredHeight + copyLogButtonHeight;

            logText.text = text;
            logText.horizontalOverflow = wrapMode;

            return(Mathf.Max(manager.ItemHeight, result));
        }
Example #18
0
 protected override void Collect(Text t)
 {
     text = t.text;
     //font = t.font;
     fontSize             = t.fontSize;
     fontStyle            = t.fontStyle;
     lineSpacing          = t.lineSpacing;
     supportRichText      = t.supportRichText;
     alignment            = t.alignment;
     alignByGeometry      = t.alignByGeometry;
     horizontalOverflow   = t.horizontalOverflow;
     verticalOverflow     = t.verticalOverflow;
     resizeTextForBestFit = t.resizeTextForBestFit;
     maskable             = t.maskable;
 }
Example #19
0
        public float CalculateExpandedHeight(DebugLogEntry logEntry, DebugLogEntryTimestamp?logEntryTimestamp)
        {
            string             text     = logText.text;
            HorizontalWrapMode wrapMode = logText.horizontalOverflow;

            SetText(logEntry, logEntryTimestamp, true);
            logText.horizontalOverflow = HorizontalWrapMode.Wrap;

            float result = logText.preferredHeight + copyLogButtonHeight;

            logText.text = text;
            logText.horizontalOverflow = wrapMode;

            return(Mathf.Max(listView.ItemHeight, result));
        }
Example #20
0
        public static string TextAdjust(string value, float boxwidth, HorizontalWrapMode horizontalOverflow, FontData fontData)
        {
            value = value.Replace("\\n", "\n");
            string ret = value;

            if (ThaiFontAdjuster.ThaiFontAdjuster.IsThaiString(value))
            {
                if (horizontalOverflow == HorizontalWrapMode.Wrap)
                {
                    ret = ThaiWrappingText(ret, boxwidth, fontData);
                }
                ret = ThaiFontAdjuster.ThaiFontAdjuster.Adjust(ret);
            }
            ret = System.Text.RegularExpressions.Regex.Unescape(ret);
            return(ret);
        }
Example #21
0
 public TextSerializable(Text text) : base(text)
 {
     alignment            = text.alignment;
     alignByGeometry      = text.alignByGeometry;
     fontSize             = text.fontSize;
     horizontalOverflow   = text.horizontalOverflow;
     verticalOverflow     = text.verticalOverflow;
     lineSpacing          = text.lineSpacing;
     resizeTextMaxSize    = text.resizeTextMaxSize;
     fontStyle            = text.fontStyle;
     resizeTextMinSize    = text.resizeTextMinSize;
     supportRichText      = text.supportRichText;
     resizeTextForBestFit = text.resizeTextForBestFit;
     font      = text.font != null ? new FontSerializable(text.font) : null;
     this.text = text.text;
 }
Example #22
0
        // Calculate selected logitem height
        public float CalculateExpandedHeight(string content, float itemHeight)
        {
            string text = m_LogText.text;
            //var mode = m_logText.overflowMode;
            HorizontalWrapMode wapMode = m_LogText.horizontalOverflow;

            m_LogText.text = content;
            //m_logText.overflowMode = TextOverflowModes.Overflow;
            m_LogText.horizontalOverflow = HorizontalWrapMode.Wrap;

            float result = m_LogText.preferredHeight;

            m_LogText.text = text;
            //m_logText.overflowMode = mode;
            m_LogText.horizontalOverflow = wapMode;

            return(Mathf.Max(itemHeight, result));
        }
    private static int get_horizontalOverflow(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            Text text = (Text)obj;
            HorizontalWrapMode horizontalOverflow = text.get_horizontalOverflow();
            ToLua.Push(L, horizontalOverflow);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.get_Message() : "attempt to index horizontalOverflow on a nil value");
        }
        return(result);
    }
    private static int set_horizontalOverflow(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            Text text = (Text)obj;
            HorizontalWrapMode horizontalOverflow = (int)ToLua.CheckObject(L, 2, typeof(HorizontalWrapMode));
            text.set_horizontalOverflow(horizontalOverflow);
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.get_Message() : "attempt to index horizontalOverflow on a nil value");
        }
        return(result);
    }
        protected override void ReadFromImpl(object obj)
        {
            base.ReadFromImpl(obj);
            Text uo = (Text)obj;

            font                 = ToID(uo.font);
            text                 = uo.text;
            supportRichText      = uo.supportRichText;
            resizeTextForBestFit = uo.resizeTextForBestFit;
            resizeTextMinSize    = uo.resizeTextMinSize;
            resizeTextMaxSize    = uo.resizeTextMaxSize;
            alignment            = uo.alignment;
            alignByGeometry      = uo.alignByGeometry;
            fontSize             = uo.fontSize;
            horizontalOverflow   = uo.horizontalOverflow;
            verticalOverflow     = uo.verticalOverflow;
            lineSpacing          = uo.lineSpacing;
            fontStyle            = uo.fontStyle;
        }
Example #26
0
        public static Text AddTextObject(string name, Transform parent, Font font, Color color,
                                         TextAnchor anchor, Vector2 anchorMin, Vector2 anchorMax, Vector2 pivot, Vector2 sizeDelta,
                                         int fontSize = 14, HorizontalWrapMode horizontalWrapMode = HorizontalWrapMode.Overflow, VerticalWrapMode verticalWrapMode = VerticalWrapMode.Overflow)
        {
            GameObject txtObj;

            if (parent.Find(name))
            {
                txtObj = parent.Find(name).gameObject;
                txtObj.SetActive(true);
                txtObj.transform.localPosition = Vector3.zero;
            }
            else
            {
                txtObj                         = new GameObject();
                txtObj.name                    = name;
                txtObj.transform.parent        = parent;
                txtObj.transform.localScale    = Vector3.one;
                txtObj.transform.localPosition = Vector3.zero;
                txtObj.AddComponent <Text>();
            }
            Text txt = txtObj.GetComponent <Text>();

            txt.font               = font;
            txt.fontSize           = fontSize;
            txt.text               = "Text";
            txt.alignment          = anchor;
            txt.horizontalOverflow = horizontalWrapMode;
            txt.verticalOverflow   = verticalWrapMode;
            txt.color              = color;

            txtObj.GetComponent <Text>().alignment = anchor;
            RectTransform rect = txtObj.GetComponent <RectTransform>();

            rect.localPosition = Vector3.zero;
            rect.sizeDelta     = sizeDelta;
            rect.anchorMin     = anchorMin;
            rect.anchorMax     = anchorMax;
            rect.pivot         = pivot;
            return(txtObj.GetComponent <Text>());
        }
Example #27
0
 public void assignFrom(TextSettings other)
 {
     fontMaterial    = other.fontMaterial;
     font            = other.font;
     pixelsPerUnit   = other.pixelsPerUnit;
     richText        = other.richText;
     alignByGeometry = other.alignByGeometry;
     textWidth       = other.textWidth;
     textHeight      = other.textHeight;
     fontSize        = other.fontSize;
     minDynamicSize  = other.minDynamicSize;
     maxDynamicSize  = other.maxDynamicSize;
     anchor          = other.anchor;
     alignment       = other.alignment;
     color           = other.color;
     bestFit         = other.bestFit;
     lineSpacing     = other.lineSpacing;
     horizontalWrap  = other.horizontalWrap;
     verticalWrap    = other.verticalWrap;
     fontStyle       = other.fontStyle;
 }
        private void ReplaceOldTextWithNew(Text source)
        {
            // Grab all the old information first
            GameObject         parentObject   = source.gameObject;
            string             text           = source.text;
            FontStyle          fontStyle      = source.fontStyle;
            float              fontSize       = source.fontSize;
            float              lineSpacing    = source.lineSpacing;
            bool               richText       = source.supportRichText;
            TextAnchor         alignment      = source.alignment;
            HorizontalWrapMode horizontalMode = source.horizontalOverflow;
            VerticalWrapMode   verticalMode   = source.verticalOverflow;
            bool               isAutoSizing   = source.resizeTextForBestFit;
            float              minFontSize    = source.resizeTextMinSize;
            float              maxFontSize    = source.resizeTextMaxSize;
            Color              fontColor      = source.color;
            bool               rayCastTarget  = source.raycastTarget;

            // Grab transform information
            RectTransform transform      = source.GetComponent <RectTransform>();
            Vector3       anchorPosition = transform.anchoredPosition3D;
            Vector2       anchorMax      = transform.anchorMax;
            Vector2       anchorMin      = transform.anchorMin;
            Vector2       offsetMax      = transform.offsetMax;
            Vector2       offsetMin      = transform.offsetMin;

            // Destroy the old component
            DestroyImmediate(source);

            // Add the new text component
            TextMeshProUGUI newText = parentObject.AddComponent <TextMeshProUGUI>();

            // Copy the old text properties into the new text
            newText.text        = text;
            newText.font        = newFont;
            newText.fontStyle   = ConvertFontStyle(fontStyle);
            newText.fontSize    = fontSize;
            newText.lineSpacing = lineSpacing;
            newText.richText    = richText;
            newText.alignment   = ConvertAlignment(alignment);

            // Setup word wrapping
            newText.enableWordWrapping = (horizontalMode == HorizontalWrapMode.Wrap);

            // Setup overflow
            TextOverflowModes overflowMode = TextOverflowModes.Overflow;

            if (verticalMode == VerticalWrapMode.Truncate)
            {
                overflowMode = TextOverflowModes.Truncate;
            }
            newText.overflowMode = overflowMode;

            // Setup the rest of the properties
            newText.enableAutoSizing = isAutoSizing;
            newText.fontSizeMin      = minFontSize;
            newText.fontSizeMax      = maxFontSize;
            newText.color            = fontColor;
            newText.raycastTarget    = rayCastTarget;

            // Revert transform information
            transform.anchoredPosition3D = anchorPosition;
            transform.anchorMax          = anchorMax;
            transform.anchorMin          = anchorMin;
            transform.offsetMax          = offsetMax;
            transform.offsetMin          = offsetMin;
        }
Example #29
0
    public static void TextMeshTransmorphAll(MenuCommand command)
    {
        Text[] texts = FindObjectsOfType <Text>();

        TMP_FontAsset newFont = Resources.Load("Fonts/Arial Latin SDF", typeof(TMP_FontAsset)) as TMP_FontAsset;

        if (newFont == null)
        {
            Debug.Log("Not so awesome...");
            return;
        }
        Dictionary <string, TMP_FontAsset> fontMap = new Dictionary <string, TMP_FontAsset>();

        fontMap.Add("Arial", newFont);

        foreach (Text text in texts)
        {
            Font font = text.font;
            if (font.fontNames[0] != "Arial")
            {
                continue;
            }

            GameObject   gameObject  = text.gameObject;
            Selectable[] selectables = FindObjectsOfType <Selectable>();

            List <Selectable> targetGraphicRefs = new List <Selectable>();
            foreach (Selectable selectable in selectables)
            {
                if (selectable.targetGraphic == text)
                {
                    targetGraphicRefs.Add(selectable);
                }
            }
            int                fontSize    = text.fontSize;
            FontStyle          fontStyle   = text.fontStyle;
            HorizontalWrapMode horizWrap   = text.horizontalOverflow;
            string             textValue   = text.text;
            TextAnchor         anchor      = text.alignment;
            Color              color       = text.color;
            float              lineSpacing = text.lineSpacing;

            DestroyImmediate(text);

            TextMeshProUGUI textMesh = gameObject.AddComponent <TextMeshProUGUI>();
            if (fontMap.ContainsKey(font.fontNames[0]))
            {
                textMesh.font = fontMap[font.fontNames[0]];
            }
            textMesh.fontSize           = fontSize;
            textMesh.fontStyle          = FontStyle2TMProFontStyle(fontStyle);
            textMesh.enableWordWrapping = (horizWrap == HorizontalWrapMode.Wrap);
            textMesh.text        = textValue;
            textMesh.alignment   = TextAnchor2TMProTextAlignmentOptions(anchor);
            textMesh.color       = color;
            textMesh.lineSpacing = lineSpacing;

            foreach (Selectable selectable in targetGraphicRefs)
            {
                selectable.targetGraphic = textMesh;
            }
        }
    }
 internal bool Populate_Internal(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, VerticalWrapMode verticalOverFlow, HorizontalWrapMode horizontalOverflow, bool updateBounds, TextAnchor anchor, Vector2 extents, Vector2 pivot, bool generateOutOfBounds, bool alignByGeometry, out TextGenerationError error)
 {
     uint num = 0;
     bool flag = this.Populate_Internal_cpp(str, font, color, fontSize, scaleFactor, lineSpacing, style, richText, resizeTextForBestFit, resizeTextMinSize, resizeTextMaxSize, (int) verticalOverFlow, (int) horizontalOverflow, updateBounds, anchor, extents.x, extents.y, pivot.x, pivot.y, generateOutOfBounds, alignByGeometry, out num);
     error = (TextGenerationError) num;
     return flag;
 }
			public void SetTextHorizontalOverflow(HorizontalWrapMode mode) {
				
				if (this.text != null) this.text.horizontalOverflow = mode;
				
			}
		public ITextComponent SetTextHorizontalOverflow(HorizontalWrapMode mode) {
			
			if (this.text != null) this.text.horizontalOverflow = mode;

			return this;

		}
Example #33
0
 /// <summary>
 /// Set the horizontal overflow mode of this Text object with the passed in value.
 /// </summary>
 public static void SetHorizontalOverflow(this Text t, HorizontalWrapMode horizontalOverflow)
 {
     t.horizontalOverflow = horizontalOverflow;
 }
		internal bool Populate_Internal(string str, Font font, Color color, int fontSize, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, VerticalWrapMode verticalOverFlow, HorizontalWrapMode horizontalOverflow, bool updateBounds, TextAnchor anchor, Vector2 extents, Vector2 pivot, bool generateOutOfBounds)
		{
			return this.Populate_Internal_cpp(str, font, color, fontSize, lineSpacing, style, richText, resizeTextForBestFit, resizeTextMinSize, resizeTextMaxSize, (int)verticalOverFlow, (int)horizontalOverflow, updateBounds, anchor, extents.x, extents.y, pivot.x, pivot.y, generateOutOfBounds);
		}