コード例 #1
0
ファイル: drawing_wand.go プロジェクト: qwo/abelana-gcp
// 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))
}
コード例 #2
0
ファイル: text.go プロジェクト: bouticfactory/canvas
// Sets canvas' default font weight
func (self *Canvas) SetFontWeight(weight uint) {
	self.text.Weight = weight
	C.DrawSetFontWeight(self.drawing, C.size_t(weight))
}