# 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:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [July 27, 2023, 10:55am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/1 "2023-07-27T10:55:34Z")

</div>

Hi everyone!

Processing 4.3 was just released. We’ve revamped icons to avoid confusion with VSCode, made design & dark mode tweaks, and enhanced text centering. Plus, Java update & critical bug fixes, including syntax error highlighting that was broken in 4.2, and more!

> ➡ [**Processing download page**](https://processing.org/download) ⬅

Help us make Processing better by giving this release plenty of testing. In other words: mess around and try to break it 😁

Wanna know exactly what changed in this update? Then check out the [release notes](https://github.com/processing/processing4/releases/tag/processing-1293-4.3).

Kudos to our amazing contributors!

Raphaël de Courville  
Processing Community Lead Fellow

* * *

> **[Download Processing](https://processing.org/download/)**
>
> Processing is open source and is available for macOS, Windows, and Linux. Projects created with Processing are also cross-platform, and can be used on macOS, Windows, Android, Raspberry Pi, and many o…

> **[Release Processing 4.3 · benfry/processing4](https://github.com/benfry/processing4/releases/tag/processing-1293-4.3)**
>
> Revision 1293 – 26 July 2023
> This release incorporates several contributed fixes (see below) and a few additional bug fixes and changes. The icons have ben updated a bit so that Processing is less ...

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [July 27, 2023, 10:56am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/2 "2023-07-27T10:56:04Z")

</div>



---

<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.

---

<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:** [July 28, 2023, 10:16am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/4 "2023-07-28T10:16:02Z")

</div>

> [@sterretje](#):
>
> I basicall need to fix all prototype code now for using Processing 4.3.

Does this mean there was a small bug in 4.2 and now it’s fixed in 4.3?

And thus you have to remove your workaround when using 4.3?

That’s good news in my book: one bug less.

Thanks for the info!

Chrisir 🙂

---

<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, 12:03pm UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/5 "2023-07-28T12:03:46Z")

</div>

> [@Chrisir](#):
>
> And thus you have to remove your workaround when using 4.3?

Yes. The workaround was to just subtract something from the y position till it looked correct. From memory, it however was not a fixed value but depends on the size.

> [@Chrisir](#):
>
> That’s good news in my book: one bug less.

I did not know that it was a bug till I consulted the release notes for 4.3 to check if something had changed with regards to vertical alignment; as I’m new I considered it something that I had to learn to live with. This is a lot better 👍

But I feel sorry for those that have to fix their production code when switching to 4.3 😉

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [October 2, 2023, 11:37am UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509/6 "2023-10-02T11:37:00Z")

</div>


