data[i]->pixels = malloc(sizeof(uint8_t) * glyph->w * glyph->h);
if (data[i]->pixels == NULL) {
perror("Unable to allocate memory for glyph pixel data");
data[i]->pixels = malloc(sizeof(uint8_t) * glyph->w * glyph->h);
if (data[i]->pixels == NULL) {
perror("Unable to allocate memory for glyph pixel data");