Esempio n. 1
0
// 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
}
Esempio n. 2
0
File: ttf.go Progetto: 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
}
Esempio n. 3
0
// 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)) }
Esempio n. 4
0
File: ttf.go Progetto: beoran/fungo
// Get the font face attributes, if any
func TTFFontFaceIsFixedWidth(font *C.TTF_Font) bool {
	return i2b(int(C.TTF_FontFaceIsFixedWidth(font)))
}
Esempio n. 5
0
File: ttf.go Progetto: 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
}