gridfont encoding, drawing reworked