# Processing 4.3 is out! ✨

**URL:** <https://discourse.processing.org/t/processing-4-3-is-out/42509>\
**Category:** Processing\
**Created:** [July 27, 2023, 10:55am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509 "2023-07-27T10:55:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sterretje](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sterretje](https://discourse.processing.org/u/sterretje)\
**Post date:** [July 28, 2023, 5:11am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/3 "2023-07-28T05:11:06Z")

</div>

> [@](#):
>
> - Use calculated text height instead of OS ascent for better vertical centering. _Note: this may cause some sketches to look slightly different if textAlign(…, CENTER) is being used._ [739](https://github.com/processing/processing4/issues/739)

Slightly different is possibly a slight understatement 😉

I’m new to this game; started with Processing 4.2. I’ve always wondered why I had to adjust my vertical alignment of text inside a rectangle.

I haven’t written serious code yet but I basicall need to fix all prototype code now for using Processing 4.3.

Simple example

```java
void setup()
{
  size(300, 100);
}

void draw()
{
  rectMode(CORNER);
  fill(0xFF00FFFF);

  int x = 50;
  int y = 50;
  int w = 200;
  int h = 30;

  // outer rectangle
  stroke(0xFF00FFFF);
  rect(x, y, w, h, 10);

  // inner rectangle
  stroke(0xFF000000);
  rect(x + 5, y + 5, w - 10, h - 10, 5);
  
  textSize(20);
  textAlign(CENTER, CENTER);
  fill(0xFF000000);
  text("Hello", x + w / 2, y + h / 2);
}

```

**4.2**  
 ![textalign42](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/9/d9424abb229449fd9b554373fe292b8ac1642db6.jpeg)  
**4.3**  
 ![textalign43](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/7/d7aac7810f31257cea2786f3054ed602a36c395e.jpeg)

**Note**  
I can live with it, it’s more a warning to others that encounter the same issue.

---

_[View the full topic](https://discourse.processing.org/t/processing-4-3-is-out/42509)._
