freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] reading glyph bitmap


From: Minhaj Ahmed
Subject: [ft] reading glyph bitmap
Date: Tue, 31 Aug 2010 21:30:38 +0000

Hope I am sending this on the right email list.  I am new to fonts in general and am trying to render the bitmap of various glyphs on to a label.  I can only read the bitmap using the index

 

y_offset * width_of_bmp + x_offset .  Starting for x and y offsets of 0 this as expected reads in the first vertical line in the bitmap into the first scanline and orients the glyph horizontally.  Every time I’ve tried to scan the bitmap from top left down or from bottom left up I’ve failed.  Can anybody explain why?  Also how do you flip the glyph, I ask because rotation is not enough to fix the glyph read in the way I’ve been able to so far.  Thanx in advance!

 

 

...            -..-          ...... 

...           -...-          ......-

...          -....-          .......-

...         ......-          ........

...        -......-          ........

...       -.......-          ........

...      -........-          ........

...     -.........-               ...

...    -..........-               ...

...   -...........-               ...

...  -............-               ...

...--......--.....-               ...

..........-  -.......................

.........-    -......................

........-      -....................-

.......-         ..................-

......-          -...............-  

.....-            -..............   

....-              -............-   

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]