Change malloc+sprintf to asprintf
Add 4px gap between cursor and last Glyph