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 18:27:22 +0200 (CEST)

> [...] 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.

>> What git commit ID of the `freetype2-demos' repository are you
>> using?
> 
> I am using freetype2-demos' VER 2.9.1.

OK, thanks.


    Werner

reply via email to

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