(s string, style Style, p image.Point)
| 67 | } |
| 68 | |
| 69 | func (self *Buffer) SetString(s string, style Style, p image.Point) { |
| 70 | runes := []rune(s) |
| 71 | x := 0 |
| 72 | for _, char := range runes { |
| 73 | self.SetCell(Cell{char, style}, image.Pt(p.X+x, p.Y)) |
| 74 | x += rw.RuneWidth(char) |
| 75 | } |
| 76 | } |