Beispiel #1
0
//GlyphPath adds a closed path for the glyphs to the current path.
//The generated path, if filled, achieves an effect similar to that
//of ShowGlyphs.
//
//Originally cairo_glyph_path.
func (c *Context) GlyphPath(glyphs []Glyph) *Context {
	gs, n := XtensionGlyphsGotoC(glyphs, false)
	C.cairo_glyph_path(c.c, gs, n)
	return c
}
Beispiel #2
0
// void cairo_glyph_path (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs);
func (self *Surface) GlyphPath(glyphs []Glyph) {
	C.cairo_glyph_path(self.context, (*C.cairo_glyph_t)(unsafe.Pointer(&glyphs[0])), C.int(len(glyphs)))
}