Last glyph in ImageFont always has a spacing of 0

Issue #417 resolved
created an issue

This bug was reporting in the forum here:

The problem is the last character in an ImageFont doesn't have proper spacing when printed. I tracked down the issue to the file font/ImageRasterizer.cpp. The function ImageRasterizer::load() doesn't set the spacing for the last char in the glyph list.

In that function, somewhere this needs to be set: spacing[glyphs[length-1]] = ????

or else it defaults to 0. That's as far as I got, I didn't have time to figure out the correct setting for the spacing of the last glyph.

Comments (2)

  1. Log in to comment