freetype-devel
[Top][All Lists]
Advanced

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

RE: [Devel] Questions about freetype...


From: Graham Asher
Subject: RE: [Devel] Questions about freetype...
Date: Tue, 11 Jun 2002 12:08:20 +0100

<<<<<<
 i'm loading fonts bits from Glyph data and i'm
rendering it into bitmap.., some of them are good, some not... examples in
attached pictures - what could i done wrong???
>>>>>>

You are drawing the bitmap with the wrong pitch. You have to increment the
pointer by the correct number of bytes per row, which is not necessarily the
same as the minimum number of bytes needed to store each row. The pitch -
number of bytes per row - is given by the 'pitch' member of the FT_Bitmap
structure, defined in ftimage.h.

Best regards,

Graham Asher
software architect






reply via email to

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