# How to get space between the displayed letters

**URL:** <https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682>\
**Category:** Coding Questions\
**Created:** [October 18, 2020, 6:27pm UTC](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682 "2020-10-18T18:27:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellie98](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Post date:** [October 18, 2020, 6:27pm UTC](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682/1 "2020-10-18T18:27:19Z")

</div>

Hello,  
some of the letters are above other letters. How to get one letter behind another letter without overlapping?  
Thanks in advance!

```auto
char alphabet = 'a';
char nextChar;
float chatX = 20;
int spacing;

void setup() {
  size(500, 500);  
  spacing = width/45;
}

void draw() {
  background(0);
  float nextChatX = chatX;

  for ( int i = 0; i < 26; i++) {
    nextChar = char(alphabet + i);
    textSize(24);
    fill(random(255), random(255), random(255), random(255));
    noLoop();
    text( nextChar, (nextChatX) + (spacing * i), 25);
  }
}

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 18, 2020, 7:21pm UTC](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682/2 "2020-10-18T19:21:00Z")

</div>

> [@Ellie98](#):
>
> `spacing = width/45;`

Increase the spacing to get more distance here

---

<div class="post-metadata">

**Author:** ![Ellie98](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Post date:** [October 18, 2020, 7:36pm UTC](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682/3 "2020-10-18T19:36:06Z")

</div>

Oops right, worked. Thanks!!! 😀 😀
