- ui_px per_row = font->sheet_size / font->glyph_width,
- column = (ui_px)glyph % per_row,
- row = (glyph - column) / per_row;
-
- out_texcoords[0] = column * font->glyph_width;
- out_texcoords[1] = row * font->glyph_height + font->offset_y;
- out_texcoords[2] = out_texcoords[0] + font->glyph_width;
- out_texcoords[3] = out_texcoords[1] + font->glyph_height;
+ out_texcoords[0] = ch->x;
+ out_texcoords[1] = ch->y;
+ out_texcoords[2] = ch->x + ff->cw;
+ out_texcoords[3] = ch->y + ff->ch;