freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Problems with gfdriver in ftview.


From: Werner LEMBERG
Subject: Re: [ft-devel] Problems with gfdriver in ftview.
Date: Tue, 10 Jul 2018 22:36:37 +0200 (CEST)

>> 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?

With `set the pitch' I mean of course that you also adjust the code to
insert a trailing null byte each line *in the output buffer* if the
number of input bytes per line is uneven...


    Werner



reply via email to

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