Justify Window Placement in Galv's Popup Message (Timed)

I'm using Galv's Popup messages.

I wanted text to appear in the center of the screen.

I've partially figured that out. However, the text tends to draw justified to the left instead of center, making it near-impossible to get it to be perfectly in the center every time I do a show text.

I was wondering if there's a way to justify window placement to make sure it's centered.

I was thinking of calculating the width and height of the window and offsetting it based on that, but I'm not sure what is best practice for that.

Any help is appreciated. Thanks.

Here is the script.

https://galvs-scripts.com/2016/03/23/mv-timed-message-popups/

Original thread: https://forums.rpgmakerweb.com/threads/justify-window-placement-in-galvs-popup-message-timed.92386/