# How can I get the Length of a string please?

**URL:** <https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831>\
**Category:** Ask for Help\
**Created:** [January 18, 2023, 11:17am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831 "2023-01-18T11:17:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![L.M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/l.m/32/46371_2.png) [@L.M](https://community.glideapps.com/u/L.M)\
**Post date:** [January 18, 2023, 11:17am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831/1 "2023-01-18T11:17:32Z")

</div>

Hi  
As you can see in the pic  
I’m using Cloudinary to display user’s first name of the mug.  
Ly-Mei is my first name.

It would be cool to adjust the font size to the max height.  
For short first names.

Is there something like a Length(String) I can use?  
I didn’t see anywhere in Cloudinary how to “fit” a text horizontally AND vertically.  
Only fixed font size. Or exact pixels.

But if I can compute a string length, I can conditionally change the font size.

Thks 🙂

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/0/e05faf1503d8f53c7582d7e46207787a34748ce5.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 18, 2023, 11:24am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831/2 "2023-01-18T11:24:43Z")

</div>

> **[Glide • Text Length column](https://www.glideapps.com/plugins/text-length)**
>
> Gets the length of a text snippet

---

<div class="post-metadata">

**Author:** ![L.M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/l.m/32/46371_2.png) [@L.M](https://community.glideapps.com/u/L.M)\
**Post date:** [January 18, 2023, 11:37am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831/3 "2023-01-18T11:37:39Z")

</div>

You’re Beautiful.  
Solved!  
Thks.  
I’ll have a closer look to the other plugins.  
I forgot 😁

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/f/1fa996b4e5608b00f3dd0d73f004d73b85773f1f.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 18, 2023, 11:56am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831/4 "2023-01-18T11:56:13Z")

</div>

Yeah, the plugins were a bit of a game changer. So many things we used to struggle to do in the data editor are trivial to do now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [January 19, 2023, 11:56am UTC](https://community.glideapps.com/t/how-can-i-get-the-length-of-a-string-please/56831/5 "2023-01-19T11:56:55Z")

</div>

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