本文整理匯總了Golang中C.TTF_FontFaceFamilyName函數的典型用法代碼示例。如果您正苦於以下問題:Golang TTF_FontFaceFamilyName函數的具體用法?Golang TTF_FontFaceFamilyName怎麽用?Golang TTF_FontFaceFamilyName使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了TTF_FontFaceFamilyName函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: FamilyName
// Returns the family name of the font's currently selected face,
// or a blank string if unavailable.
func (f *Font) FamilyName() string {
if f == nil {
return "nil"
}
p := C.TTF_FontFaceFamilyName(f.cfont)
if p == nil {
return ""
}
s := C.GoString(p)
return s
}
示例2: FamilyName
// Returns the family name of the font's currently selected face,
// or a blank string if unavailable.
func (f *Font) FamilyName() string {
var s string
if f != nil {
p := C.TTF_FontFaceFamilyName(f.cfont)
if p != nil {
s = C.GoString(p)
} else {
s = ""
}
} else {
s = "nil"
}
return s
}
示例3: FamilyName
// Returns the family name of the font's currently selected face,
// or a blank string if unavailable.
func (f *Font) FamilyName() string {
var s string
if f != nil {
f.mutex.RLock()
p := C.TTF_FontFaceFamilyName(f.cfont)
if p != nil {
s = C.GoString(p)
} else {
s = ""
}
f.mutex.RUnlock()
} else {
s = "nil"
}
return s
}
示例4: FaceFamilyName
// FaceFamilyName (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_35.html#SEC35)
func (f *Font) FaceFamilyName() string {
_fname := C.TTF_FontFaceFamilyName(f.f)
fname := C.GoString(_fname)
return fname
}
示例5: FaceFamilyName
func (f *Font) FaceFamilyName() string {
_fname := C.TTF_FontFaceFamilyName(f.f)
fname := C.GoString(_fname)
C.free(unsafe.Pointer(_fname))
return fname
}
示例6: TTFFontFamilyName
// Font family name
func TTFFontFamilyName(font *C.TTF_Font) string {
return C.GoString(C.TTF_FontFaceFamilyName(font))
}
示例7: FaceFamilyName
func (f *Font) FaceFamilyName() string {
return C.GoString(C.TTF_FontFaceFamilyName(f.c))
}