Hi,

C Rodrigues wrote:
> Package: libsdl-ttf2.0-0
> Version: 2.0.8-2
> 
> libfreetype6 version 2.2.1-2
> libsdl1.2debian version 1.2.10-3
> 
> When attempting to render a string containing spaces using
> TTF_RenderUTF8_Solid(), rendering fails and NULL is returned.  Rendering
> is successful when the string contains no spaces.  Rendering is
> successful with TTF_RenderUTF8_Blended() or TTF_RenderUTF8_Shaded(). 
> The failure appears to be independent of the choice of font.  The
> included file and font demonstrate the problem.  It was compiled with
> 
> gcc main.c -lSDL_ttf -lSDL
> 
> I investigated the problem further using the source package.  When
> running the program provided, an error code is returned by the call to
> Find_Glyph in TTF_RenderUNICODE_Solid at approximately line 1080 of
> SDL_ttf.c.  This error does not seem to occur if the third argument to
> Find_Glyph is changed to be CACHED_METRICS|CACHED_PIXMAP instead of
> CACHED_METRICS|CACHED_BITMAP.  I do not know if such a change affects
> the expected rendered image.
> 
> I discovered this problem because it causes some pygame code to raise
> exceptions.

Thanks for the test-case you've provided, I've been able to reproduce
the problem. More intriguing, if I do a SDL_Init(SDL_INIT_VIDEO) at the
beginning then the error message returned by TTF_GetError() is:

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

Unfortunately, I have no deeper insight about this. I've CCed upstream.

Cheers,

Samuel.

PS : Sam Lantiga, you can find the full Debian bug report at
http://bugs.debian.org/374062


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to