>
> > [...] I still have a doubt about pitch value, currently it is set to
>> > (w+7) / 8 (w: glyph width ).  The documentation says `For the B/W
>> > rasterizer, ‘pitch’ is always an even number.' but this is also
>> > returning odd values.  Is there any problem in this?
>>
>> Well, simply follow the documentation, i.e., set `pitch' to
>>
>>   ((((w + 7) / 8) + 1) / 2) * 2
>>
>> (but with some better C code :-) and use this value for creating the
>> bitmap.
>>
>
> Ok, I did change the value of pitch (6) and tried to draw `a', it is
> giving a wrong
> glyph, then I changed the value to previous value(5), it drew a correct
> one[...]
>

* (gdb) p *bitmap
    $1 = {
      rows = 39,
      width = 39,
      pitch = 5,
      buffer = 0x5555557b3bf0 "",
      num_grays = 0,
      pixel_mode = 1 '\001',
      palette_mode = 0 '\000',
      palette = 0x0
    }
* I am attaching the glyph output of gfdriver, it completely satisfies
these metrics.

Thank you

Parth
0000000000011111111000000000000000000000
0000000011111111111111000000000000000000
0000001111100000001111110000000000000000
0000011100000000000011111000000000000000
0000111110000000000001111100000000000000
0000111111000000000000111110000000000000
0001111111100000000000011111000000000000
0001111111100000000000011111100000000000
0001111111100000000000011111100000000000
0001111111100000000000001111100000000000
0000111111000000000000001111110000000000
0000011110000000000000001111110000000000
0000000000000000000000001111110000000000
0000000000000000000000001111110000000000
0000000000000000000000001111110000000000
0000000000000000000000001111110000000000
0000000000000000011111111111110000000000
0000000000000111111111111111110000000000
0000000000111111111000001111110000000000
0000000011111110000000001111110000000000
0000001111111000000000001111110000000000
0000011111100000000000001111110000000000
0000111111000000000000001111110000000000
0001111110000000000000001111110000000000
0011111100000000000000001111110000000000
0111111100000000000000001111110000000000
0111111100000000000000001111110000001100
1111111000000000000000001111110000001100
1111111000000000000000001111110000001100
1111111000000000000000001111110000001100
1111111000000000000000011111110000001100
1111111000000000000000011111110000001100
1111111000000000000000011111110000001100
0011111100000000000001100011111000011000
0001111110000000000011000011111000011000
0000111111100000011110000001111111110000
0000001111111111111100000000111111100000
0000000001111111100000000000011111000000
0000000000000000000000000000000000000000

           ********
        **************
      *****       ******
     ***            *****
    *****            *****
    ******            *****
   ********            *****
   ********            ******
   ********            ******
   ********             *****
    ******              ******
     ****               ******
                        ******
                        ******
                        ******
                        ******
                 *************
             *****************
          *********     ******
        *******         ******
      *******           ******
     ******             ******
    ******              ******
   ******               ******
  ******                ******
 *******                ******
 *******                ******      **
*******                 ******      **
*******                 ******      **
*******                 ******      **
*******                *******      **
*******                *******      **
 ******                *******      **
 *******              ** *****      **
  ******             **   *****    **
   ******           **    *****    **
    *******      ****      *********
      **************        *******
         ********            *****

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to