# Resize text on Button

**URL:** <https://community.thunkable.com/t/resize-text-on-button/59444>\
**Category:** Questions about Thunkable X\
**Created:** [December 5, 2018, 8:48am UTC](https://community.thunkable.com/t/resize-text-on-button/59444 "2018-12-05T08:48:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Comitato\_Genitori\_Ma](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/comitato_genitori_ma/32/27437_2.png) [@Comitato\_Genitori\_Ma](https://community.thunkable.com/u/Comitato_Genitori_Ma)\
**Post date:** [December 5, 2018, 8:48am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/1 "2018-12-05T08:48:51Z")

</div>

Is there a possibility to automatically resize the text of a button? make it “responsive” to the size of the button? Thank you

---

<div class="post-metadata">

**Author:** ![Venkatvdr](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@Venkatvdr](https://community.thunkable.com/u/Venkatvdr)\
**Post date:** [December 5, 2018, 9:40am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/2 "2018-12-05T09:40:53Z")

</div>

How you change button size.

---

<div class="post-metadata">

**Author:** ![Comitato\_Genitori\_Ma](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/comitato_genitori_ma/32/27437_2.png) [@Comitato\_Genitori\_Ma](https://community.thunkable.com/u/Comitato_Genitori_Ma)\
**Post date:** [December 5, 2018, 4:25pm UTC](https://community.thunkable.com/t/resize-text-on-button/59444/3 "2018-12-05T16:25:54Z")

</div>

The problem is that the key is set in percentage to fit all the screens while the text has a fixed depth, so I was looking for a method or to automatically wrap the text or resize it

---

<div class="post-metadata">

**Author:** ![jian](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jian/32/28252_2.png) [@jian](https://community.thunkable.com/u/jian)\
**Post date:** [December 5, 2018, 6:29pm UTC](https://community.thunkable.com/t/resize-text-on-button/59444/4 "2018-12-05T18:29:28Z")

</div>

I haven’t found a way to dynamically resize the text size yet. Hopefully Thunkable can add a percentage property like width/height.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [December 5, 2018, 6:55pm UTC](https://community.thunkable.com/t/resize-text-on-button/59444/5 "2018-12-05T18:55:38Z")

</div>

> [@jian](#):
>
> I haven’t found a way to dynamically resize the text size yet.

Just to be clear you can dynamically resize the text size by setting the FontSize property of the button using the `'from Button set FontSize to'` block. What we don’t currently have is a way to set that FontSize to a percentage or to get the size of the button, which would allow you to compute the FontSize to match the button size.

-Mark

---

<div class="post-metadata">

**Author:** ![jian](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jian/32/28252_2.png) [@jian](https://community.thunkable.com/u/jian)\
**Post date:** [December 5, 2018, 10:13pm UTC](https://community.thunkable.com/t/resize-text-on-button/59444/6 "2018-12-05T22:13:02Z")

</div>

One workaround will be to set the button fontSize to the percentage of the button Width or Height. On screen initialized, `from Button set FontSzie to` `from Button get Width` \* percentage.

---

<div class="post-metadata">

**Author:** ![Comitato\_Genitori\_Ma](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/comitato_genitori_ma/32/27437_2.png) [@Comitato\_Genitori\_Ma](https://community.thunkable.com/u/Comitato_Genitori_Ma)\
**Post date:** [December 6, 2018, 9:49am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/7 "2018-12-06T09:49:30Z")

</div>

Use the block that you tell me that I set a size in any case of the font, the problem is that this device to device failure and between ios and android, you should be able to calculate, starting from a certain size, the optimal size for the screen in use, is there a block that will return the screen resolution in use? if we think that a trivial equivalence solves our problem

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 6, 2018, 11:45am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/8 "2018-12-06T11:45:38Z")

</div>

There is no beautiful block for determining the screen resolution, but there is an example of obtaining information using a web service on the scrSystemInfo screen.

[https://x.thunkable.com/projects/5be813b36245ad2916513266/project/properties/designer/](https://x.thunkable.com/projects/5be813b36245ad2916513266/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![Comitato\_Genitori\_Ma](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/comitato_genitori_ma/32/27437_2.png) [@Comitato\_Genitori\_Ma](https://community.thunkable.com/u/Comitato_Genitori_Ma)\
**Post date:** [December 7, 2018, 7:45am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/9 "2018-12-07T07:45:33Z")

</div>

@ACTech, As soon as I can, I try to study the example you posted to me. Thank you

---

<div class="post-metadata">

**Author:** ![rodrigo.arellanoi](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rodrigo.arellanoi](https://community.thunkable.com/u/rodrigo.arellanoi)\
**Post date:** [December 4, 2020, 5:25pm UTC](https://community.thunkable.com/t/resize-text-on-button/59444/10 "2020-12-04T17:25:33Z")

</div>

Hi everyone, I’ve done a method can help you to get the right font size for you device (is not responsive). You need to know the right size you need for 2 devices (for example a cellphone and a tablet). Now you need to interpolate or extrapolate depending on each on.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/c/cc21b58c1f8c8e8b65069734c9df646ce2a81355.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/e/de20583251208f012c3e0b7c24cae7559609a266.png)

Now just have to assign the variable to the font size tex or multiply by other number to change it.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:52am UTC](https://community.thunkable.com/t/resize-text-on-button/59444/11 "2024-11-08T11:52:30Z")

</div>


