Exemplo n.º 1
0
// Descent (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_31.html#SEC31)
func (f *Font) Descent() int { return int(C.TTF_FontDescent(f.f)) }
Exemplo n.º 2
0
Arquivo: ttf.go Projeto: beoran/fungo
// Get the offset from the baseline to the bottom of the font
// This is a negative value, relative to the baseline.
func TTFFontDescent(font *C.TTF_Font) int {
	return int(C.TTF_FontDescent(font))
}
Exemplo n.º 3
0
Arquivo: ttf.go Projeto: Zwobot/Go-SDL
// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
	f.mutex.RLock()
	result := int(C.TTF_FontDescent(f.cfont))
	f.mutex.RUnlock()
	return result
}
Exemplo n.º 4
0
Arquivo: ttf.go Projeto: krig/Go-SDL2
// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
	result := int(C.TTF_FontDescent(f.cfont))
	return result
}