tokens can be separated with padding at the back
the cursor can be positioned after the last character of a token
fix warnings by casting size_t to float explicitly