QWIIC ALPHANUMERIC DISPLAY

I am using the QWIIC ALPHANUMERIC display Part #18566 and printing a integer to the display using display.print(int); the result is left aligned; how do I right align or center the display?

Bill

I would convert it to a string and display that. Something likeā€¦

#define DISPLAY_CHARS 4
void display_num(int num) {
    char numstr[DISPLAY_CHARS + 1];
    snprintf(numstr, sizeof(numstr), "%4d", num);
    display.print(numstr);
}