Beispiel #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)) }
Beispiel #2
0
func (f *Font) GetHeight() int {
	return int(C.TTF_FontHeight(f.Get()))
}
Beispiel #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))
}
Beispiel #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
}
Beispiel #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
}