本文整理汇总了Golang中C.TTF_FontFaces函数的典型用法代码示例。如果您正苦于以下问题:Golang TTF_FontFaces函数的具体用法?Golang TTF_FontFaces怎么用?Golang TTF_FontFaces使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TTF_FontFaces函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Faces
// 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: Faces
// 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: Faces
func (f *Font) Faces() int64 {
return int64(C.TTF_FontFaces(f.c))
}
示例4: TTFFontFaces
// Get the number of faces of the font
func TTFFontFaces(font *C.TTF_Font) int32 {
return int32(C.TTF_FontFaces(font))
}
示例5: Faces
// 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
}