Ejemplo n.º 1
0
func (self *Surface) SetFontMatrix(matrix Matrix) {
	C.cairo_set_font_matrix(self.context, matrix.cairo_matrix_t())
}
Ejemplo n.º 2
0
//SetFontMatrix sets the current font matrix to m.
//The font matrix gives a transformation from the design space of the font
//(in this space, the em-square is 1 unit by 1 unit) to user space.
//
//Originally cairo_set_font_matrix.
func (c *Context) SetFontMatrix(m Matrix) *Context {
	C.cairo_set_font_matrix(c.c, &m.m)
	return c
}