Ejemplo n.º 1
0
// TextEnd draws text end-aligned at (x,y)
func TextEnd(x, y float64, s string, font string, size int, style ...string) {
	t := C.CString(s)
	defer C.free(unsafe.Pointer(t))
	C.TextEnd(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
}
Ejemplo n.º 2
0
// TextEnd draws text end-aligned at (x,y)
func TextEnd(x, y VGfloat, s string, font string, size int) {
	t := C.CString(s)
	C.TextEnd(C.VGfloat(x), C.VGfloat(y), t, selectfont(font), C.int(size))
	C.free(unsafe.Pointer(t))
}