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