[Fwd: SDL_ttf Bugs?]

I hate to repost this, but I didn’t get any responses (except for one person who
said they also noticed the second problem.

Can anyone help?> ----- Original Message -----

Subject: SDL_ttf Bugs?
Date: Fri, 18 Jan 2002 23:09:06 -0600
From: @Buck_Lemke (Buck Lemke)
To: sdl at libsdl.org

I’ve noticed two problems with SDL_ttf. One is probably related to the
font I’m using, the other, may be a misunderstanding.

First of all, when I call TTF_RenderText_Solid(…), the Surface
returned seems to be clipped incorrectly. The best way to show that is
with the code I’ve attached. The “Inkburro.ttf” font displays the
number “4” incorrectly. I’m assuming that this is because there is
something wrong with the font, because when I use “comic.ttf” (MS Font)
it displays Fine. Could someone try the code and verify for me? The
code is attached and the fonts can be downloaded at
http://bucklemke.com/Inkburro.ttf and http://bucklemke.com/comic.ttf (I
don’t think I’m supposed to distribute comic.ttf, so if someone asks,
you didn’t get it from me [:)] )

The second problem (also shown in the attached code) is that when I
render Bold text, it is always black, with the color passed to
TTF_RenderText_Solid(…), as an outline. Am I doing something wrong or
is this a problem with SDL_ttf?

Thanks,
Buck

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: font.c
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020211/77bd1df6/attachment.asc

Hi,

As you say the problem might be the font. Go to www.freetype.org get the
latest version (2.0.7) and the demos (separate download). You will find a
couple of utilities in there (a font viewer, a “font lint” and others). Try
them and see what happens.
Also not all TTF files have a bold style present in the same file (MS
Windows arial doesn’t, see your windows\fonts directory and you will find
the arial(b/i/bi).ttf files (normal, bold, italic, and bold italic).
I have successfully used arial.ttf with SDL_ttf.

Good luck!_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com