How to set text kerning?
Closed this issue · 0 comments
makarychev13 commented
Hello. It is possible to set letter spacing? I mean analog letter-spacing.
Example code
func main() {
ttf, err := loadTTF("Mariupol-Regular.ttf", 8) //function from doc
if err != nil {
log.Fatal(err)
}
atlas := text.NewAtlas(ttf, text.ASCII, text.RangeTable(unicode.Cyrillic))
basicTxt := text.New(pixel.V(15, 175), atlas)
basicTxt.SetKerning(2) //I want to use something similar, but I can't find it in the pixel or freetype/truetype
}