Some TrueType fonts don't work?

I’ve been playing with SDL_ttf and I’ve been trying to open several
hundred font files I’ve down load on the net + the X luxi fonts + the
OpenOffice fonts + the Java jdk fonts.

The X fonts work, and the Java fonts work. But about half of the other
fonts that I try to use open without a problem, but all the glyphs in
the range 32-127 render as little square boxes. That happens with the
showfont demo that comes with SDL_ttf and with my own code. There are
not error message generated when opening, or using, the bad fonts.

I’m stumped. I’ve read through showfont.c SDL_tth.h, and SDL_ttf.c and
don’t see anything to indicate what might be causing this problem.

Anyone got a clue to spare?

	Bob Pendleton

P.S.

I’ll send the code and a sample font that works and a sample font that
doesn’t work to anyone who wants it.–
±-----------------------------------+

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.>From: Bob Pendleton

Reply-To: sdl at libsdl.org
To: SDL Mailing List
Subject: [SDL] Some TrueType fonts don’t work?
Date: 21 Nov 2002 14:35:27 -0600

I’ve been playing with SDL_ttf and I’ve been trying to open several
hundred font files I’ve down load on the net + the X luxi fonts + the
OpenOffice fonts + the Java jdk fonts.

The X fonts work, and the Java fonts work. But about half of the other
fonts that I try to use open without a problem, but all the glyphs in
the range 32-127 render as little square boxes. That happens with the
showfont demo that comes with SDL_ttf and with my own code. There are
not error message generated when opening, or using, the bad fonts.

I’m stumped. I’ve read through showfont.c SDL_tth.h, and SDL_ttf.c and
don’t see anything to indicate what might be causing this problem.

Anyone got a clue to spare?

  Bob Pendleton

P.S.

I’ll send the code and a sample font that works and a sample font that
doesn’t work to anyone who wants it.


±-----------------------------------+


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

Good thought. But, I have the same problem with all the fonts that are
distributed with Open Office. Those fonts are supposed to be open and
they clearly work in open office.

	Bob PendletonOn Thu, 2002-11-21 at 15:12, David Moffatt wrote:

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.


±-----------------------------------+

I’ve seen weird font issues which had to do with buggy versions of
FreeType2. Upgrade to the latest FreeType2 and SDL_ttf and see if that
helps.

Sorry for being vague. I didn’t look into it much myself.
I just noticed that on one box, a TTF worked fine.
On the other, my SDL_ttf-based-app and SDL_ttf’s “showfont” example app.
failed to show anything (just blank or boxes)

Good luck!

-bill!On Thu, Nov 21, 2002 at 06:38:44PM -0600, Bob Pendleton wrote:

On Thu, 2002-11-21 at 15:12, David Moffatt wrote:

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.

Good thought. But, I have the same problem with all the fonts that are
distributed with Open Office. Those fonts are supposed to be open and
they clearly work in open office.

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.

Good thought. But, I have the same problem with all the fonts that are
distributed with Open Office. Those fonts are supposed to be open and
they clearly work in open office.

I’ve seen weird font issues which had to do with buggy versions of
FreeType2. Upgrade to the latest FreeType2 and SDL_ttf and see if that
helps.

Sorry for being vague. I didn’t look into it much myself.
I just noticed that on one box, a TTF worked fine.
On the other, my SDL_ttf-based-app and SDL_ttf’s “showfont” example app.
failed to show anything (just blank or boxes)

Good luck!

Ok, I downloaded the newest versions of both FreeType libraries and in
poking around I found “ftview” a very nice program for displaying
TrueType fonts. Turns out is was already installed, so without
installing the new libraries I used it to look at the fonts that I
downloaded, and it shows all of them to me.

So, I can see the fonts with ftview, but not with SDL showfont. There is
a but there somewhere.

	Bob PendletonOn Thu, 2002-11-21 at 18:44, Bill Kendrick wrote:

On Thu, Nov 21, 2002 at 06:38:44PM -0600, Bob Pendleton wrote:

On Thu, 2002-11-21 at 15:12, David Moffatt wrote:

-bill!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-----------------------------------+

Have you tried various sizes of the font? I’ve had problems with some
font files simply not working at certain sizes.On Thu, 2002-11-21 at 12:35, Bob Pendleton wrote:

I’ve been playing with SDL_ttf and I’ve been trying to open several
hundred font files I’ve down load on the net + the X luxi fonts + the
OpenOffice fonts + the Java jdk fonts.

The X fonts work, and the Java fonts work. But about half of the other
fonts that I try to use open without a problem, but all the glyphs in
the range 32-127 render as little square boxes. That happens with the
showfont demo that comes with SDL_ttf and with my own code. There are
not error message generated when opening, or using, the bad fonts.

I’m stumped. I’ve read through showfont.c SDL_tth.h, and SDL_ttf.c and
don’t see anything to indicate what might be causing this problem.

Anyone got a clue to spare?

  Bob Pendleton

P.S.

I’ll send the code and a sample font that works and a sample font that
doesn’t work to anyone who wants it.

Chris Thielen <@Christopher_Thielen>

That was the problem. I downloaded and installed the latest versions of
FreeType 1 & 2. and now everything works just perfectly. This is most
frustrating since I just upgraded to RH 8.0 and the ttf libs I was using
were the ones that came with that distribution.

Thank you, and everyone else who replied, for the help.

	Bob Pendleton

P.S

If anyone knows WHY the libs that came with RH 8.0 don’t work with all
fonts I’d really like to hear about it.On Thu, 2002-11-21 at 18:44, Bill Kendrick wrote:

On Thu, Nov 21, 2002 at 06:38:44PM -0600, Bob Pendleton wrote:

On Thu, 2002-11-21 at 15:12, David Moffatt wrote:

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.

Good thought. But, I have the same problem with all the fonts that are
distributed with Open Office. Those fonts are supposed to be open and
they clearly work in open office.

I’ve seen weird font issues which had to do with buggy versions of
FreeType2. Upgrade to the latest FreeType2 and SDL_ttf and see if that
helps.


±-----------------------------------+

You’ve downloaded a some shareware fonts. If you want all the glyphs you
have to pay the authors for the full version.

Good thought. But, I have the same problem with all the fonts that are
distributed with Open Office. Those fonts are supposed to be open and
they clearly work in open office.

I’ve seen weird font issues which had to do with buggy versions of
FreeType2. Upgrade to the latest FreeType2 and SDL_ttf and see if that
helps.

That was the problem. I downloaded and installed the latest versions of
FreeType 1 & 2. and now everything works just perfectly. This is most
frustrating since I just upgraded to RH 8.0 and the ttf libs I was using
were the ones that came with that distribution.

Thank you, and everyone else who replied, for the help.

  Bob Pendleton

P.S

If anyone knows WHY the libs that came with RH 8.0 don’t work with all
fonts I’d really like to hear about it.

Red hat 8.0 ships with a development version of freetype 2. From what I
understand it’s an early version of 2.1.3. I’m guessing thats why you had
problems with some of the fonts.

-JohnOn 23 Nov 2002, Bob Pendleton wrote:

On Thu, 2002-11-21 at 18:44, Bill Kendrick wrote:

On Thu, Nov 21, 2002 at 06:38:44PM -0600, Bob Pendleton wrote:

On Thu, 2002-11-21 at 15:12, David Moffatt wrote: