Ejemplo n.º 1
0
// Sets the font weight to use when annotating with text.
//
// fontWeight: font weight (valid range 100-900)
func (dw *DrawingWand) SetFontWeight(fontWeight uint) {
	C.DrawSetFontWeight(dw.dw, C.size_t(fontWeight))
}
Ejemplo n.º 2
0
// Sets canvas' default font weight
func (self *Canvas) SetFontWeight(weight uint) {
	self.text.Weight = weight
	C.DrawSetFontWeight(self.drawing, C.size_t(weight))
}