Removed spaces from fonts

The spaces caused part of the font text to be measured in the js file.
Fixed bug with partial text in moving cursor

The cursor would behave unpredictably if you clicked on a line that
wasn’t completely filled.