Exemple #1
0
// Height (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_29.html#SEC29)
func (f *Font) Height() int { return int(C.TTF_FontHeight(f.f)) }
Exemple #2
0
func (f *Font) GetHeight() int {
	return int(C.TTF_FontHeight(f.Get()))
}
Exemple #3
0
// Get the total height of the font - usually equal to point size
func TTFFontHeight(font *C.TTF_Font) int {
	return int(C.TTF_FontHeight(font))
}
Exemple #4
0
// Returns the maximum height of all the glyphs of the font.
func (f *Font) Height() int {
	f.mutex.RLock()
	result := int(C.TTF_FontHeight(f.cfont))
	f.mutex.RUnlock()
	return result
}
Exemple #5
0
// Returns the maximum height of all the glyphs of the font.
func (f *Font) Height() int {
	result := int(C.TTF_FontHeight(f.cfont))
	return result
}