Exemple #1
0
// TextMid draws text centered at (x,y)
func TextMid(x, y float64, s string, font string, size int, style ...string) {
	t := C.CString(s)
	defer C.free(unsafe.Pointer(t))
	C.TextMid(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
}
Exemple #2
0
// TextMid draws text centered at (x,y)
func TextMid(x, y VGfloat, s string, font string, size int) {
	t := C.CString(s)
	C.TextMid(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
	C.free(unsafe.Pointer(t))
}