TTF_FontHeight and TTF_RenderText_Shaded

Hi All,

I have just started using the SDL_ttf library and I am creating a font from
cour.ttf (Courier) at a point size of 22. When I render the text to a surface
using TTF_RenderText_Shaded I end up with a huge surface of height 38 pixels.
TTF_FontLineSkip returns a value of 29.

In the docs it says LineSkip is usually larger than FontHeight I am getting
the opposite.

Any ideas?

Cheers,
Robin.

Thanks anyways, but I looked at the SDL_ttf source and found the trouble.

Thanks anyways, but I looked at the SDL_ttf source and found the trouble.

So what was it?

ChrisOn Fri, 1 Oct 2004 19:38:43 +0000 (UTC), Robin Forster <robin.forster at sympatico.ca> wrote:


Chris Nystrom
http://www.newio.org/~ccn
AIM: nystromchris

P.S. I have 3 Gmail invites available. Please e-mail me if you want one.