Exemple #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)) }
Exemple #2
0
// 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
}
Exemple #3
0
func (f *Font) Faces() int64 {
	return int64(C.TTF_FontFaces(f.c))
}
Exemple #4
0
// Get the number of faces of the font
func TTFFontFaces(font *C.TTF_Font) int32 {
	return int32(C.TTF_FontFaces(font))
}
Exemple #5
0
// 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
}