golang/freetype

Adjust the font centered in the image

wpecker opened this issue · 1 comments

Font centered in the image

For example:

pt := freetype.Pt(0,440 + int(f.PointToFixed(26)) >> 8) 

That is, how to quickly and automatically give the X coordinate value so that the font is centered.

any way?