35 unsigned int byte_offset = pixel_offset /
BYTE_SIZE;
36 unsigned int bit_offset = 7 - (pixel_offset %
BYTE_SIZE);
38 return (canvas->
buffer[byte_offset] & (1 << bit_offset)) >> bit_offset;
56 unsigned int byte_offset = pixel_offset /
BYTE_SIZE;
57 unsigned int bit_offset = 7 - (pixel_offset %
BYTE_SIZE);
65 canvas->
buffer[byte_offset] =
66 canvas->
buffer[byte_offset] | 1 << bit_offset;
68 canvas->
buffer[byte_offset] =
69 canvas->
buffer[byte_offset] & ~(1 << bit_offset);
98 if (FT_Init_FreeType (&canvas->
ftLib))
99 printf (
"Freetype couldnt initialise\n");