示例#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)) }
示例#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
}