>
> > [...] 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. I
think that this might be the problem, that gf uses odd pitch value to draw
glyph
and ftview requires a even one?

Thank you

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

Reply via email to