Exemplo n.º 1
0
func LoadFont(fname string, size, flags int) *Font {
	cfname := C.CString(fname)
	defer C.free(unsafe.Pointer(cfname))
	var f *Font

	f = (*Font)(C.al_load_font(cfname, C.int(size), C.int(flags)))

	return f
}
Exemplo n.º 2
0
func LoadFont(fileName string, size, flags int32) *Font {
	f := C.CString(fileName)
	defer C.free(unsafe.Pointer(f))
	return (*Font)(unsafe.Pointer(C.al_load_font(f, C.int(size), C.int(flags))))
}