Fix font handling when there is no space character