golang/freetype

how to get the length for font after draw

fr4nkhe opened this issue · 1 comments

I want the font draw in the image horizontal center, but I don't know what method can get the length for font.

syrm commented

drawer.MeasureString(text) ? (drawer is *font.Drawer)