Example #1
0
// Faces (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_33.html#SEC33)
func (f *Font) Faces() int { return int(C.TTF_FontFaces(f.f)) }
Example #2
0
File: ttf.go Project: Zwobot/Go-SDL
// Returns the number of available faces (sub-fonts) in the font.
func (f *Font) Faces() int {
	f.mutex.RLock()
	result := int(C.TTF_FontFaces(f.cfont))
	f.mutex.RUnlock()
	return result
}
Example #3
0
File: ttf.go Project: willemvds/sdl
func (f *Font) Faces() int64 {
	return int64(C.TTF_FontFaces(f.c))
}
Example #4
0
File: ttf.go Project: beoran/fungo
// Get the number of faces of the font
func TTFFontFaces(font *C.TTF_Font) int32 {
	return int32(C.TTF_FontFaces(font))
}
Example #5
0
File: ttf.go Project: krig/Go-SDL2
// Returns the number of available faces (sub-fonts) in the font.
func (f *Font) Faces() int {
	result := int(C.TTF_FontFaces(f.cfont))
	return result
}