Beispiel #1
0
// SetKerning (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_28.html#SEC28)
func (f *Font) SetKerning(allowed bool) {
	val := 0
	if allowed {
		val = 1
	}
	C.TTF_SetFontKerning(f.f, C.int(val))
}
Beispiel #2
0
func (f *Font) SetKerning(kerning int) {
	C.TTF_SetFontKerning(f.c, C.int(kerning))
}