# Sizing widgets in verse

**URL:** <https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, Widget, question, fortnite\
**Created:** [July 26, 2023, 3:49pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774 "2023-07-26T15:49:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klught2.0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Klught2.0](https://forums.unrealengine.com/u/Klught2.0)\
**Post date:** [July 26, 2023, 3:49pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/1 "2023-07-26T15:49:10Z")

</div>

I’m converting my widget blueprint to verse so that I can change its values with devices. I use size boxes to scale my text widgets currently:  
 ![widget_h](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/3/4a3359d6cec6742b19051811159fcd28c094be86.png)  
I don’t see a size box, so is there another way I can make my text blocks have a certain size?

---

<div class="post-metadata">

**Author:** ![itascreations](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itascreations](https://forums.unrealengine.com/u/itascreations)\
**Post date:** [July 26, 2023, 4:35pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/2 "2023-07-26T16:35:37Z")

</div>

You _should_ be able to set the width and height of a button, but changing the font size is not possible yet

---

<div class="post-metadata">

**Author:** ![Klught2.0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Klught2.0](https://forums.unrealengine.com/u/Klught2.0)\
**Post date:** [July 26, 2023, 5:44pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/3 "2023-07-26T17:44:00Z")

</div>

I reread my post and i am not explaining well at all, sorry about that. Im trying to make my text force itself to be a certain size like it is in the widget blueprint (which has SizeBoxes), but without a size box im not sure how i can do that. heres my current UI in verse.

 ![verseui](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/e/9ae3183d5b45b65a505de442b70c484ea1fa0b43.png)

---

<div class="post-metadata">

**Author:** ![SET\_petroboti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SET\_petroboti](https://forums.unrealengine.com/u/SET_petroboti)\
**Post date:** [June 15, 2024, 1:14pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/4 "2024-06-15T13:14:27Z")

</div>

It’s been a year and i still don’t see any option to change a text\_block’s font size. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Klught2.0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Klught2.0](https://forums.unrealengine.com/u/Klught2.0)\
**Post date:** [June 30, 2024, 11:02am UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/5 "2024-06-30T11:02:03Z")

</div>

Nope, sadly theres still no way to change the font size. . .

---

<div class="post-metadata">

**Author:** ![PlsFocus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plsfocus/32/1090249_2.png) [@PlsFocus](https://forums.unrealengine.com/u/PlsFocus)\
**Post date:** [June 24, 2025, 10:10pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/6 "2025-06-24T22:10:08Z")

</div>

This needs to be added. Please add Font size to [Verse API reference page for the text\_base class | Fortnite Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/fortnite/verse-api/unrealenginedotcom/temporary/ui/text_base)

---

<div class="post-metadata">

**Author:** ![Zirok15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zirok15](https://forums.unrealengine.com/u/Zirok15)\
**Post date:** [July 25, 2025, 7:53pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/7 "2025-07-25T19:53:31Z")

</div>

A proper `size_box` widget has not been added as of July 2025, but you can use a workaround:

1. Use an overlay widget and put a `text_block` and a `color_block` inside it.
2. Have your `text_block` fill both horizontal and vertical
3. Set the `DefaultDesiredSize` component of the `color_block` widget to whatever you need
4. Set `DefaultOpacity` to 0.0 to make it inivisible

Here is a little example:

```verse
Widget := overlay:
  Slots := array:

    overlay_slot:
      HorizontalAlignment := horizontal_alignment.Center
      VerticalAlignment := vertical_alignment.Center
      Widget := color_block:
        DefaultOpacity := 0.0
        DefaultDesiredSize := vector2{X:=32.0, Y:=60.0}

    overlay_slot:
      HorizontalAlignment := horizontal_alignment.Fill
      VerticalAlignment := vertical_alignment.Fill
      Widget := NameTextBlock

```

---

<div class="post-metadata">

**Author:** ![lantram](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lantram/32/977871_2.png) [@lantram](https://forums.unrealengine.com/u/lantram)\
**Post date:** [July 27, 2025, 5:05pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/9 "2025-07-27T17:05:40Z")

</div>

I tried that out and couldn’t get it to work. The text overflowed the color block, and then the overlay sized to the text (since it was the largest slot). The text size was unchanged from its original. Am I missing something?

```auto
using { /Fortnite.com/UI }
using { /Verse.org/Colors }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/UI }
using { /UnrealEngine.com/Temporary/SpatialMath }

text_widget := class()
{
    var fontHeight<private>: float = 12.0
    var lineWidth<private>: float = 200.0
    var textBlock<private>: text_block = text_block{}
    var maybeWidget<private>: ?widget = false

    Create(InText: string, InFontHeight: float, InLineWidth: float):void=
    {
        set fontHeight = InFontHeight
        set lineWidth = InLineWidth

        set textBlock = text_block
        {
            DefaultText := StringToMessage(InText),
            DefaultTextColor := NamedColors.White,
            DefaultShadowColor := NamedColors.Black,
            DefaultShadowOffset := option{vector2{X := 1.0, Y := 1.0}},
            DefaultTextOpacity := 1.0,
            DefaultShadowOpacity := 0.8
        }

        TheOverlay := overlay {

            Slots := array {

                overlay_slot{
                    HorizontalAlignment := horizontal_alignment.Center,
                    VerticalAlignment := vertical_alignment.Center,
                    Widget := color_block
                    {
                        DefaultColor := NamedColors.Red,
                        DefaultOpacity := 1.0,
                        DefaultDesiredSize := vector2{X:=lineWidth, Y:=fontHeight}
                    }
                },

                overlay_slot
                {
                    HorizontalAlignment := horizontal_alignment.Fill,
                    VerticalAlignment := vertical_alignment.Fill,
                    Widget := textBlock
                }
            }
        }
        
        set maybeWidget = option{TheOverlay}
    }

    GetWidget<public>()<transacts>:?widget=
    {
        maybeWidget
    }

    SetText(InText: string):void=
    {
        textBlock.SetText(StringToMessage(InText))
    }
}

```

---

<div class="post-metadata">

**Author:** ![Zirok15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zirok15](https://forums.unrealengine.com/u/Zirok15)\
**Post date:** [July 28, 2025, 8:36pm UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/10 "2025-07-28T20:36:07Z")

</div>

Hi, I think you misunderstood this post. This is not about setting the font size of a text, this is a workaround to use a **size box** in verse (which is currently only available in widget blueprints), like using a rock if you don’t have a hammer.

In this case, a size box is being used to determine the minimum height of a text block, which means that if its text has less lines than intended, the space available will remain the same. This is useful because there is no way to set a minimum desired height for a text block

Currently there’s no way to set text’s font size of a `text_block` created in verse.

---

<div class="post-metadata">

**Author:** ![lantram](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lantram/32/977871_2.png) [@lantram](https://forums.unrealengine.com/u/lantram)\
**Post date:** [July 29, 2025, 3:39am UTC](https://forums.unrealengine.com/t/sizing-widgets-in-verse/1240774/11 "2025-07-29T03:39:57Z")

</div>

Oh, okay. Thanks for explaining. I was thinking you figured out a way to scale the text. 🤦‍♂️ 🙂
