本文整理汇总了Golang中C.TTF_FontFaceIsFixedWidth函数的典型用法代码示例。如果您正苦于以下问题:Golang TTF_FontFaceIsFixedWidth函数的具体用法?Golang TTF_FontFaceIsFixedWidth怎么用?Golang TTF_FontFaceIsFixedWidth使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TTF_FontFaceIsFixedWidth函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: FaceIsFixedWidth
// FaceIsFixedWidth (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_34.html#SEC34)
func (f *Font) FaceIsFixedWidth() bool {
return int(C.TTF_FontFaceIsFixedWidth(f.f)) != 0
}
示例2: IsFixedWidth
// Returns >0 if the font's currently selected face is fixed width
// (i.e. monospace), 0 if not.
func (f *Font) IsFixedWidth() int {
f.mutex.RLock()
result := int(C.TTF_FontFaceIsFixedWidth(f.cfont))
f.mutex.RUnlock()
return result
}
示例3: IsFixedWidth
// Returns >0 if the font's currently selected face is fixed width
// (i.e. monospace), 0 if not.
func (f *Font) IsFixedWidth() int { return int(C.TTF_FontFaceIsFixedWidth(f.cfont)) }
示例4: TTFFontFaceIsFixedWidth
// Get the font face attributes, if any
func TTFFontFaceIsFixedWidth(font *C.TTF_Font) bool {
return i2b(int(C.TTF_FontFaceIsFixedWidth(font)))
}
示例5: IsFixedWidth
// Returns >0 if the font's currently selected face is fixed width
// (i.e. monospace), 0 if not.
func (f *Font) IsFixedWidth() int {
result := int(C.TTF_FontFaceIsFixedWidth(f.cfont))
return result
}