예제 #1
0
파일: sdl_ttf.go 프로젝트: veandco/go-sdl2
// 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)) }
예제 #2
0
파일: ttf.go 프로젝트: 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
}
예제 #3
0
파일: ttf.go 프로젝트: willemvds/sdl
func (f *Font) Faces() int64 {
	return int64(C.TTF_FontFaces(f.c))
}
예제 #4
0
파일: ttf.go 프로젝트: beoran/fungo
// Get the number of faces of the font
func TTFFontFaces(font *C.TTF_Font) int32 {
	return int32(C.TTF_FontFaces(font))
}
예제 #5
0
파일: ttf.go 프로젝트: 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
}