コード例 #1
0
ファイル: sdl_ttf.go プロジェクト: veandco/go-sdl2
// 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
0
ファイル: ttf.go プロジェクト: Zwobot/Go-SDL
// 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
0
ファイル: ttf.go プロジェクト: jgastal/Go-SDL
// 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
0
ファイル: ttf.go プロジェクト: beoran/fungo
// Get the font face attributes, if any
func TTFFontFaceIsFixedWidth(font *C.TTF_Font) bool {
	return i2b(int(C.TTF_FontFaceIsFixedWidth(font)))
}
コード例 #5
0
ファイル: ttf.go プロジェクト: krig/Go-SDL2
// 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
}