freetype
[Top][All Lists]
Advanced

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

RE: [Freetype] (no subject)


From: Plunkett, Sinead
Subject: RE: [Freetype] (no subject)
Date: Thu, 19 Feb 2004 13:27:57 -0000

I am using freetype-2.1.7 (got it yesterday)
Now all i get are scrolling stars (******) as the output.

The comment in the function draw_bitmap, doesn't instill a lot of
faith....does it!

/* Replace this function with something useful. */

void
draw_bitmap( FT_Bitmap*  bitmap,
             FT_Int      x,
             FT_Int      y)
{
  FT_Int  i, j, p, q;
  FT_Int  x_max = x + bitmap->width;
  FT_Int  y_max = y + bitmap->rows;


  for ( i = x, p = 0; i < x_max; i++, p++ )
  {
    for ( j = y, q = 0; j < y_max; j++, q++ )
    {
      if ( i >= WIDTH || j >= HEIGHT )
        continue;

      image[j][i] |= bitmap->buffer[q * bitmap->width + p];
    }
  }
}

Thank you
Sinead 

-----Original Message-----
From: Werner LEMBERG [mailto:address@hidden
Sent: 19 February 2004 08:29
To: address@hidden; address@hidden
Subject: Re: [Freetype] (no subject)



> I have downloaded the freetype library and built it using VC
> compiler;

You don't tell us which version you use.  Please retry with the CVS
version (or a current development shapshot).


    Werner



reply via email to

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