canvas.go
func DrawRawText(x, y int, text string) {
	cx, cy, cw, ch := ClipRect()
	if x >= cx+cw || y < cy || y >= cy+ch {
		return
	}

	length := xs.Len(text)
	if x+length < cx {
		return
	}

	if x < cx {
		text = xs.Slice(text, cx-x, -1)
		length = length - (cx - x)
		x = cx
	}
	text = CutText(text, cw)

	dx := 0
	for _, ch := range text {
		putCharUnsafe(x+dx, y, ch)
		dx++
	}
}
func DrawRawText(x, y int, text string) {
	cx, cy, cw, ch := ClipRect()
	if x >= cx+cw || y < cy || y >= cy+ch {
		return
	}

	length := xs.Len(text)
	if x+length < cx {
		return
	}

	if x < cx {
		text = xs.Slice(text, cx-x, -1)
		length = length - (cx - x)
		x = cx
	}
	text = CutText(text, cw)

	dx := 0
	for _, ch := range text {
		putCharUnsafe(x+dx, y, ch)
		dx++
	}
}
func DrawRawText ( x , y int , text string ) { cx , cy , cw , ch := ClipRect ( ) if x >= cx + cw || y < cy || y >= cy + ch { return } length := xs . Len ( text ) if x + length < cx { return } if x < cx { text = xs . Slice ( text , cx - x , - 1 ) length = length - ( cx - x ) x = cx } text = CutText ( text , cw ) dx := 0 for _ , ch := range text { putCharUnsafe ( x + dx , y , ch ) dx ++ } }
// DrawRawText draws the part of text that is inside the current clipping
// rectangle. DrawRawText always paints string as is - no color changes.
// If you want to draw string with color changing commands included then
// use DrawText function
DrawRawText draws the part of text that is inside the current clipping rectangle . DrawRawText always paints string as is - no color changes . If you want to draw string with color changing commands included then use DrawText function