Esempio n. 1
0
// Text draws text whose aligment begins (x,y)
func Text(x, y float64, s string, font string, size int, style ...string) {
	t := C.CString(s)
	defer C.free(unsafe.Pointer(t))
	C.Text(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
}
Esempio n. 2
0
// Text draws text whose aligment begins (x,y)
func Text(x, y VGfloat, s string, font string, size int) {
	t := C.CString(s)
	C.Text(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
	C.free(unsafe.Pointer(t))
}