22int gpf_glyph_pixel_set(
struct gpf_glyph *self,
int col,
int height,
int set)
24 int left, right, top, bottom;
25 unsigned int w, h, x, y;
29 if (gpf_glyph_pixel_get(self, col, height) == !!set)
50 bits = calloc(1, (
size_t)w * h);
54 for (y = 0; y < self->
height; y++) {
55 for (x = 0; x < self->
width; x++) {
62 bits[(top - height) * w + col - left] = !!set;
65 ret = gpf_glyph_set_bits(self, bits, w, h, left, top);