As in the docs:
sam lets you configure a font for drawing text, and a colour to draw it with. However, due to the way sam draws selected text, you should set the foreground colour to black OR use a font without anti-aliasing. If you don't do at least one of those, selected text will be rainbow gibberish.
The best way to fix this would just be to update the selected text drawing code - and get some brownie points by making the selection color configurable!