예제 #1
0
// void cairo_show_glyphs (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs);
func (self *Surface) ShowGlyphs(glyphs []Glyph) {
	C.cairo_show_glyphs(self.context, (*C.cairo_glyph_t)(unsafe.Pointer(&glyphs[0])), C.int(len(glyphs)))
}
예제 #2
0
파일: cairo.go 프로젝트: jimmyfrasche/cairo
//ShowGlyphs draws a shape generated from gylphs rendered according
//to the current Font, font matrix, and FontOptions.
//
//Originally cairo_show_glyphs.
func (c *Context) ShowGlyphs(glyphs []Glyph) *Context {
	gs, n := XtensionGlyphsGotoC(glyphs, false)
	C.cairo_show_glyphs(c.c, gs, n)
	return c
}