# Changing Text\_block Text Size

**URL:** <https://forums.unrealengine.com/t/changing-text-block-text-size/1312791>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [September 26, 2023, 1:00pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791 "2023-09-26T13:00:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LloretMunoz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lloretmunoz/32/725856_2.png) [@LloretMunoz](https://forums.unrealengine.com/u/LloretMunoz)\
**Post date:** [September 26, 2023, 1:00pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791/1 "2023-09-26T13:00:37Z")

</div>

Hi, I’m trying to change the size of a text block, but first of all, in the Text\_block class you cant call a funcation to do it, that i thing thats one of the most importants things you need in this case. Furhtermore i am readyng that in the own canvas\_slot you can change the size of a widget, but it doesnt change the text size.  
Do qnybody knows how to do this?

---

<div class="post-metadata">

**Author:** ![LoPing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loping/32/737300_2.png) [@LoPing](https://forums.unrealengine.com/u/LoPing)\
**Post date:** [September 26, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791/2 "2023-09-26T17:01:18Z")

</div>

Doesn’t look like you can, at least now.

Looking at the code I see: justification, clipping, the text itself, color, opacity, and overflow policy.

I don’t see either size or font.

From UnrealEngine.digest.verse…

```auto
text_justification<native><public> := enum:
            Left
            Center
            Right
            InvariantLeft
            InvariantRight

        # Text overflow policy values:
        # Clip: Overflowing text will be clipped.
        # Ellipsis: Overflowing text will be replaced with an ellipsis.
        text_overflow_policy<native><public> := enum:
            Clip
            Ellipsis

        # Base widget for text widget.
        text_base<native><public> := class<abstract>(widget):
            # The text to display to the user. Used only during initialization of the widget and not modified by SetText.
            DefaultText<native><localizes><public>:message = external {}

            # The color of the displayed text. Used only during initialization of the widget and not modified by SetTextColor.
            DefaultTextColor<native><public>:color = external {}

            # The opacity of the displayed text. Used only during initialization of the widget and not modified by SetTextOpacity.
            DefaultTextOpacity<native><public>:type {_X:float where 0.000000 <= _X, _X <= 1.000000} = external {}

            # The justification to display to the user. Used only during initialization of the widget and not modified by SetJustification.
            DefaultJustification<native><public>:text_justification = external {}

            # The policy that determine what happens when the text is longer than its allowed length.
            # Used only during initialization of the widget and not modified by SetOverflowPolicy.
            DefaultOverflowPolicy<native><public>:text_overflow_policy = external {}

            # Sets the text displayed in the widget.
            SetText<native><public>(InText:message):void

            # Gets the text currently in the widget.
            GetText<native><public>():[]char

            # Sets the text justification in the widget.
            SetJustification<native><public>(InJustification:text_justification):void

            # Gets the text justification in the widget.
            GetJustification<native><public>():text_justification

            # Sets the policy that determine what happens when the text is longer than its allowed length.
            SetOverflowPolicy<native><public>(InOverflowPolicy:text_overflow_policy):void

            # Gets the policy that determine what happens when the text is longer than its allowed length.
            GetOverflowPolicy<native><public>():text_overflow_policy

            # Sets the color of the displayed text.
            SetTextColor<native><public>(InColor:color):void

            # Gets the color of the displayed text.
            GetTextColor<native><public>():color

            # Sets the opacity of the displayed text.
            SetTextOpacity<native><public>(InOpacity:type {_X:float where 0.000000 <= _X, _X <= 1.000000}):void

            # Gets the opacity of the displayed text.
            GetTextOpacity<native><public>():type {_X:float where 0.000000 <= _X, _X <= 1.000000}
```

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 26, 2023, 7:25pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791/3 "2023-09-26T19:25:54Z")

</div>

Correct, there is no way to change the text size at this time.

---

<div class="post-metadata">

**Author:** ![LoPing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loping/32/737300_2.png) [@LoPing](https://forums.unrealengine.com/u/LoPing)\
**Post date:** [September 26, 2023, 8:49pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791/4 "2023-09-26T20:49:17Z")

</div>

There are only two work-arounds that I am aware of and neither handles dynamic text (unless you get very tricky): using the widget designer instead of code then you have to use the HUD device to display. And putting the text in a texture file and displaying it as a texture block. Neither is ideal.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 26, 2023, 8:49pm UTC](https://forums.unrealengine.com/t/changing-text-block-text-size/1312791/5 "2023-10-26T20:49:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
