freetype
[Top][All Lists]
Advanced

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

RE: [Freetype] freetype newbie


From: drew
Subject: RE: [Freetype] freetype newbie
Date: Thu, 15 Aug 2002 11:40:58 -0600

Hi,

I had a lot of trouble with the example code as well.  Worst part was the 
broken link to a .tar.gz that's supposed to have two compilable examples :( :)

I finally figured out how to do most things, though I couldn't get 
FT_Set_Transform() to do anything sane (story for another time).  Try locating 
and downloading the ft2demo package/programs.  There's a lot of code to wade 
through in there, but at least they work :)

I also have a small demo app that I was using to play with rotation...
  http://www.folta.net/drew/fttest.c


Drew



>From address@hidden :
> 
> Hi!  I'm another FreeType newbie.  I've looked at the tutorials
> (which seem to be written for an older version of FT.. they don't
> compile!) and I've managed to write a small program that draws one
> character to a bitmap.  I use my own code to save the bitmap to a
> file.
> 
> Anyways, I'm pretty sure I'm doing it wrong.  I'm using monochrome
> rendering (no AA, 1 bit / pixel).  It only works when my buffer and
> device size is square, and my font height = font width.  If I try to
> use a non-square buffer, or if I try to use font height != font
> width, I only get part of the character rendered, like it's being
> clipped wrong or something.
> 
> So, the million-dollar question:  Is there a download somewhere for a
> relatively short .c file containing a main() function that renders a
> simple piece of text to a monochrome bitmap, and nothing more?  I
> mean a file I can just download and compile, without fiddling.  I'm
> surprised I haven't been able to find one.  It took hours just for me
> to figure out how to do it incorrectly :)  Please, somebody, hook me
> up with such a main().  I would be super-greatful.
> 
> - Graham Fyffe
> 
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/freetype
> 




reply via email to

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