本文整理汇总了Golang中C.TTF_FontDescent函数的典型用法代码示例。如果您正苦于以下问题:Golang TTF_FontDescent函数的具体用法?Golang TTF_FontDescent怎么用?Golang TTF_FontDescent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TTF_FontDescent函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Descent
// Descent (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_31.html#SEC31)
func (f *Font) Descent() int { return int(C.TTF_FontDescent(f.f)) }
示例2: TTFFontDescent
// Get the offset from the baseline to the bottom of the font
// This is a negative value, relative to the baseline.
func TTFFontDescent(font *C.TTF_Font) int {
return int(C.TTF_FontDescent(font))
}
示例3: Descent
// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
f.mutex.RLock()
result := int(C.TTF_FontDescent(f.cfont))
f.mutex.RUnlock()
return result
}
示例4: Descent
// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
result := int(C.TTF_FontDescent(f.cfont))
return result
}