Exemplo n.º 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)) }
Exemplo n.º 2
0
Arquivo: ttf.go Projeto: henkman/Go2D
func (f *Font) GetHeight() int {
	return int(C.TTF_FontHeight(f.Get()))
}
Exemplo n.º 3
0
Arquivo: ttf.go Projeto: beoran/fungo
// 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))
}
Exemplo n.º 4
0
Arquivo: ttf.go Projeto: Zwobot/Go-SDL
// 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
}
Exemplo n.º 5
0
Arquivo: ttf.go Projeto: krig/Go-SDL2
// 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
}