// 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)) }
// 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)) }