Using ddd I checked out the various structures in FT. Joe, thanks, I figured out the bit format used in FT.
The following became clear: 1: The ttf example does not read out the data sequentially. VERY spagettilikeproggramming. The inner loop jumps from row to row to draw all the pixels in one column, and the data is packed per row. (!) Read the carefully or cut and paste blindly... 2: The data for a bitmap font character has a width and rowcount. If, for instance the width is 6, the data for a row is zero padded to the next byte (or nibble). The data is not packed as a bitstring, but as a bytestring (or some other). Now I still have some questions:)) the bitmap_left and bitmap_top positions remain on the set location for the ttf according to the pen/matrix setting as done by the FT_Set_Transform function. The positions with bitmap fonts seem to remain relative to 0:0 and does not place itself real. Mmmm Curious mr Watson... What happens to the sub pixel resolution with bitmap fonts. I assume it is not really relevant, since the data is monochrome on the pixel raster... Best regards, Frans _______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
