RE: [ft] bitmap buffer length

2010-02-26 Thread David Bevan
Oops - I should have checked before replying. size = abs(bitmap-pitch) * bitmap-rows; -Original Message- From: Werner LEMBERG [mailto:w...@gnu.org] Sent: 25 February 2010 17:08 To: David Bevan Cc: samaram...@gmail.com; freetype@nongnu.org Subject: Re: [ft] bitmap buffer length

[ft] bitmap buffer length

2010-02-25 Thread samaram s
Hi, I would like to know how much is the bitmap buffer size. Actually i am calculating like below said, if((bitmap-width/8) 1) size = 2*bitmap-rows ; else size = ((bitmap-width /8)+1)*bitmap-rows; But for few characters i am getting it perfect,but for few characters i

Re: [ft] bitmap buffer length

2010-02-25 Thread Werner LEMBERG
I would like to know how much is the bitmap buffer size. Actually i am calculating like below said, if((bitmap-width/8) 1) size = 2*bitmap-rows ; else size = ((bitmap-width /8)+1)*bitmap-rows; But for few characters i am getting it perfect,but for few

Re: [ft] bitmap buffer length

2010-02-25 Thread samaram s
The pitch is positive when the bitmap has a ‘down’ flow, and negative when it has an ‘up’ flow. rows * pitch When i multiply a negative pitch i will get a negative number of bytes right?? or my assumption is wrong? I would like to read the bitmap-buffer, for (i=0; i size ; i++) printf(%.2x