示例#1
0
// LineSkip (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_32.html#SEC32)
func (f *Font) LineSkip() int { return int(C.TTF_FontLineSkip(f.f)) }
示例#2
0
文件: ttf.go 项目: beoran/fungo
// Get the recommended spacing between lines of text for this font
func TTFFontLineSkip(font *C.TTF_Font) int {
	return int(C.TTF_FontLineSkip(font))
}
示例#3
0
文件: ttf.go 项目: Zwobot/Go-SDL
// Returns the recommended pixel height of a rendered line of text.
func (f *Font) LineSkip() int {
	f.mutex.RLock()
	result := int(C.TTF_FontLineSkip(f.cfont))
	f.mutex.RUnlock()
	return result
}
示例#4
0
文件: ttf.go 项目: krig/Go-SDL2
// Returns the recommended pixel height of a rendered line of text.
func (f *Font) LineSkip() int {
	result := int(C.TTF_FontLineSkip(f.cfont))
	return result
}