last = font->glyphs[font->n_glyphs-1].code;
font->image.w = round_to_pot(cpl*cellw);
- font->image.h = round_to_pot((last-first+cpl)/cpl*cellh);
+ if(seq)
+ font->image.h = round_to_pot((font->n_glyphs+cpl-1)/cpl*cellh);
+ else
+ font->image.h = round_to_pot((last-first+cpl)/cpl*cellh);
font->image.data = (char *)alloc_image_data(font->image.w, font->image.h);
if(!font->image.data)