Skip to content

Commit

Permalink
Fix canvas.AddText won't display unicode correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDang committed Aug 1, 2021
1 parent 0cce82b commit b505600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c *Canvas) AddRectFilled(pMin, pMax image.Point, color color.RGBA, roundin
}

func (c *Canvas) AddText(pos image.Point, color color.RGBA, text string) {
c.drawlist.AddText(ToVec2(pos), ToVec4Color(color), text)
c.drawlist.AddText(ToVec2(pos), ToVec4Color(color), tStr(text))
}

func (c *Canvas) AddBezierCubic(pos0, cp0, cp1, pos1 image.Point, color color.RGBA, thickness float32, num_segments int) {
Expand Down

0 comments on commit b505600

Please sign in to comment.