コード例 #1
0
ファイル: sdl_ttf.go プロジェクト: veandco/go-sdl2
// 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)) }
コード例 #2
0
ファイル: ttf.go プロジェクト: henkman/Go2D
func (f *Font) GetHeight() int {
	return int(C.TTF_FontHeight(f.Get()))
}
コード例 #3
0
ファイル: ttf.go プロジェクト: 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))
}
コード例 #4
0
ファイル: ttf.go プロジェクト: 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
}
コード例 #5
0
ファイル: ttf.go プロジェクト: 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
}