Example #1
0
func (part *simpleTextPart) Draw(surface *drawing.Surface) os.Error {
	item := part.item
	text := item.text.Slice(part.offset, part.offset+part.length)

	return surface.DrawText(text, item.font, item.color, part.bounds, item.format)
}