Beispiel #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
}
Beispiel #2
0
// 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
}
Beispiel #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)) }
Beispiel #4
0
// Get the font face attributes, if any
func TTFFontFaceIsFixedWidth(font *C.TTF_Font) bool {
	return i2b(int(C.TTF_FontFaceIsFixedWidth(font)))
}
Beispiel #5
0
// 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
}