We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 332

Summary: TTF_RenderText_Solid
Product: SDL_ttf Reporter: mko <mko.93>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: mko.93
Version: unspecified   
Hardware: x86   
OS: Linux   

Description mko 2006-09-23 16:32:08 UTC
TTF_RenderText_Solid method does not work any more since the sdl-ttf-2.0.8.
After analyse, the second parameter (char* text) does not accept a string with one or more spaces. In this case, the string will not be displayed. 

For information, I work on a gentoo linux with amd64 processor, and I use the libsdl 1.2.11
Comment 1 andreas 2006-11-24 01:42:22 UTC
This is a known bug in FreeType and is fixed in their CVS.

Reference; http://www.mail-archive.com/freetype@nongnu.org/msg00802.html


As a workaround, building SDL_ttf with v2.1.10 or earlier may solve the problem.

Comment 2 Jesse Andrews 2006-12-21 00:20:55 UTC
if it helps at all:


SDL_Color color={0,0,0};
SDL_Surface *text_surface;
text_surface=TTF_RenderText_Solid(font,"Hello World!",color);
printf("Error: %s\n", TTF_GetError());

returns

Error: Failed loading DPMSDisable: /usr/lib/libX11.so.6: undefined symbol: DPMSDisable


but I guess we just have to live with it not working until FreeType has another release and it is picked up by most distros :(
Comment 3 Ryan C. Gordon 2007-02-13 05:24:19 UTC
(Not an SDL bug, resolving bug entry.)

--ryan.