freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Windows code displaying garbage - any help?


From: Jason C. Weaver
Subject: Re: [Freetype] Windows code displaying garbage - any help?
Date: Mon, 2 Jun 2003 15:12:34 -0700 (PDT)

I can certainly go through that exercise but it just seems that the process of 
converting a
FreeType bitmap to a Windows bitmap would be well documented somewhere.  Either 
that or that
someone would have provided a simple example by now.  If someone has documented 
this or there is a
simple example I would surely appreciate someone letting me know where it is.  
It would save me a
great deal of time and halt the continued frustration with this integration 
effort.

Thanks for any more information.
Chris


--- Greg Inman <address@hidden> wrote:
> To check the Freetype bitmap it might help to print it to standard output.
> Then you can check it pixel by pixel.  For a pixel that is background use
> 'O' and for a pixel that is set use 'X'.  At the end of the scan line start
> a new line.
> 
> You may be able then to see how your interpretation of the Freetype bmp is
> flawed.
> 
> Greg
> 
> 
> ----- Original Message -----
> From: "Jason C. Weaver" <address@hidden>
> To: <address@hidden>
> Sent: Monday, June 02, 2003 2:55 PM
> Subject: Re: [Freetype] Windows code displaying garbage - any help?
> 
> 
> > Thanks for the suggestion.  I've already verified that my Windows code
> works (see my original
> > email)  ;)  It properly displays my hand-made bitmap at my hard-code
> (300,300) point.
> > Chris
> >
> >
> > --- Greg Inman <address@hidden> wrote:
> > > > ... I suspect my transformation from the Freetype bmp to a Windows bmp
> is
> > > flawed.
> > >
> > > To determine that your code is ok from the transformation point onwards
> > > construct a test Windows bmp to display and ignore for now the Freetype
> bmp.
> > > If your test bmp is displayed correctly, then the transformation *is*
> the
> > > problem.
> > >
> > > In the past for a test bmp I have drawn manually a rectangular border
> around
> > > the edge of the bmp, then stepped in two pixels and drawn another
> rectangle
> > > inside of the first, then stepped in two pixels and drawn a third
> rectangle
> > > inside of the second.  From what is displayed you will get a better idea
> of
> > > what might be wrong.  If the sizes you are using are not right, you may
> be
> > > able to use the 3 rectangles as a means of calibrating the extent of the
> > > error.
> > >
> > > Greg
> > >
> > >
> > >
> > > _______________________________________________
> > > Freetype mailing list
> > > address@hidden
> > > http://www.freetype.org/mailman/listinfo/freetype
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> > http://calendar.yahoo.com
> >
> > _______________________________________________
> > Freetype mailing list
> > address@hidden
> > http://www.freetype.org/mailman/listinfo/freetype
> >
> 
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/freetype


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



reply via email to

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