Problem with TTF_SetFontStyle

The documentation for the function TTF_SetFontStyle in SDL_ttf at
http://jcatki.no-ip.org/SDL_ttf/SDL_ttf_frame.html says this:

" I’ve seen that combining TTF_STYLE_UNDERLINE with anything can cause a
segfault, other combinations may also do this. Some brave soul may find the
cause of this and fix it… "

We’ve stumbled across this problem in Battle for Wesnoth development. It
crashes sporadically, varying from machine to machine, whenever underlining
or italics are used, and perhaps sometimes when bold is used.

Has there been any progress made on fixing this? Is there any intent to fix
this?

As one might imagine, it greatly hampers the usefulness of the SDL_ttf
library to have this problem around.

Cheers,

David White
Lead Developer
Battle for Wesnoth (http://www.wesnoth.org)

The documentation for the function TTF_SetFontStyle in SDL_ttf at
http://jcatki.no-ip.org/SDL_ttf/SDL_ttf_frame.html says this:

" I’ve seen that combining TTF_STYLE_UNDERLINE with anything can cause a
segfault, other combinations may also do this. Some brave soul may find the
cause of this and fix it… "

We’ve stumbled across this problem in Battle for Wesnoth development. It
crashes sporadically, varying from machine to machine, whenever underlining
or italics are used, and perhaps sometimes when bold is used.

Has there been any progress made on fixing this? Is there any intent to fix
this?

As one might imagine, it greatly hampers the usefulness of the SDL_ttf
library to have this problem around.

Is this fixed in CVS? I think I fixed an off-by-one bug in there a while
back.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

The documentation for the function TTF_SetFontStyle in SDL_ttf at
http://jcatki.no-ip.org/SDL_ttf/SDL_ttf_frame.html says this:

" I’ve seen that combining TTF_STYLE_UNDERLINE with anything can
cause a
segfault, other combinations may also do this. Some brave soul may
find the
cause of this and fix it… "

We’ve stumbled across this problem in Battle for Wesnoth development.
It
crashes sporadically, varying from machine to machine, whenever
underlining
or italics are used, and perhaps sometimes when bold is used.

Has there been any progress made on fixing this? Is there any intent
to fix
this?

As one might imagine, it greatly hampers the usefulness of the SDL_ttf
library to have this problem around.

OGLFT uses FreeType, and I have similar problems (though I supposed two
applications that have “random crashes” aren’t necessarily related :stuck_out_tongue:
.) Are there any known problems in FreeType?