[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] Re: [Gltt-discuss] help with openGL (bitmap vs filled polygon
From: |
Gerard Lanois |
Subject: |
[Freetype] Re: [Gltt-discuss] help with openGL (bitmap vs filled polygons) |
Date: |
Thu, 20 Sep 2001 09:35:33 -0700 (PDT) |
--- Wallace Chigona <address@hidden> wrote:
> Hi guys,
> I am rendering Freetype fonts using openGL and I am trying different
> libraries(including some bits which I am developing myself).
>
> I am mainly interested in rendering the characters as Bitmaps (for high
> quality), "filled-polygons" (for speed, I am storing them as display
> lists). Initally I render the characters using "filled-polygons",i.e I
> am changing the character a lot (i.e rotating etc) and once I get the
> final picture, I want to replace the "filled polygon" characters with
> the high quality bitmap characters. In which case, the size of the
> respective "filled-polygon" character must be equal to the size of their
> bitmaped counterparts.
>
> With Bitmaps, all I need is to specify the character size, i.e
> FT_Set_Char_size and I get a character which I want. However, with
> "Filled-polygons" (or outlines) I have to use scaling (glScalef). My
> question then is, how canI make sure the sizes of the two are equal?
Set up your projection and viewing matrices so that 1 unit in world
space equals 1 pixel in window space. If you are drawing your
characters in an arbitrarily defined 3-space, you will first need
to project their locations into window space (probably by using
gluProject()).
-Gerard
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/