The code below brings the text in the center of x, but i don't know how to calculate the center for the y coordinate... it is not (imgH-h)/2!
(The right y-coordinate is -80)
from PIL import Image, ImageDraw, ImageFont
font= './fonts/BebasNeue-Regular.ttf'
color = (255, 244, 41)
text = 'S'
img = Image.new('RGB', (500, 500), color=(255, 255, 255))
imgW, imgH = img.size
fnt = ImageFont.truetype(font, 600)
d = ImageDraw.Draw(img)
w, h = d.textsize(text, fnt)
nullH = (imgH-h)
print(imgH, h)
d.text(((imgW-w)/2, nullH), text, font=fnt, fill=color)
img.show()