[SOLVED] Centering Help Window Text

How would this be done? The draw_text_ex method has no alignment options; I've tried manually setting the x value by using the text_size(#).width method, but because I'm using Yanfly's Message System, there are escape codes in the text that are being counted in the calculation, causing the final text to be misaligned. Is there another way to do this, or am I just being silly and missing something?

EDIT: Ok, I figured out one way to do it. Probably not the most efficient solution, but I just found the width of the text without escape codes and added any extra width for icons and stuff myself. With that, I then notetagged each individual skill and item with it's own x value. As I said, not super efficient, but it gets the job done.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-centering-help-window-text.40104/