Esempio 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)) }
Esempio n. 2
0
File: ttf.go Progetto: 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))
}
Esempio n. 3
0
File: ttf.go Progetto: 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
}
Esempio n. 4
0
File: ttf.go Progetto: 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
}