List Info

Thread: sdl_ttf.TTF_RenderGlyph_Solid problem and workaround




sdl_ttf.TTF_RenderGlyph_Solid problem and workaround
country flaguser name
Poland
2007-05-30 23:15:03

Hi,

I stumbled upon this problem when compiling Joseph's GearHead. It's a
general problem (in sdl_ttf library, actually in freetype used by
sdl_ttf), so I thought that I'll inform the list about it. Someone may
also want to apply attached patch to sdl_ttf.pas to CVS, although the
patch allows you only to (quite brutally and not really perfectly)
workaround the problem.

The error manifests as TTF_RenderGlyph_Solid returning nil (error) and
error message (in SDL_Error) is "Failed loading DPMSDisable:
/usr/lib/libX11.so.6: undefined symbol: DPMSDisable". If you don't check
for error results from TTF_RenderGlyph_Solid and SDL_BlitSurface in your
code, then you may miss this error, and the only indication of the error
will be that some text is simply not rendered.

It's a known bug in freetype. See
[http://lists.libsdl.org/pipermail/sdl-libsdl.org/2007-March/060459.html].
The error message suggests that it's Unix-specific, and the link above
says it's fixed in newer freetype versions But people may still use for
some time buggy versions --- I'm sitting on Debian testing, which is
fairly often updated, and have this bug.

The attached patch to sdl_ttf.pas allows you to easily turn on the
workaround of the problem. TTF_RenderGlyph_Solid will then be done by
TTF_RenderGlyph_Shaded call with black background. (I told you it's a
brutal workaround, right ?

Hope this helps someone,

Michalis

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: sdl_ttf.TTF_RenderGlyph_Solid problem and workaround
country flaguser name
United States
2007-05-31 01:51:36

Hi Michalis,
This mailing list does not allow attachments. Please email it
directly to me.

btw, can you tell me which system/OS you have tested the latest beta on?

Dominique.

Michalis Kamburelis wrote:
> Hi,
>
> I stumbled upon this problem when compiling Joseph's GearHead. It's a
> general problem (in sdl_ttf library, actually in freetype used by
> sdl_ttf), so I thought that I'll inform the list about it. Someone may
> also want to apply attached patch to sdl_ttf.pas to CVS, although the
> patch allows you only to (quite brutally and not really perfectly)
> workaround the problem.
>
> The error manifests as TTF_RenderGlyph_Solid returning nil (error) and
> error message (in SDL_Error) is "Failed loading DPMSDisable:
> /usr/lib/libX11.so.6: undefined symbol: DPMSDisable". If you don't check
> for error results from TTF_RenderGlyph_Solid and SDL_BlitSurface in your
>; code, then you may miss this error, and the only indication of the error
> will be that some text is simply not rendered.
>
> It's a known bug in freetype. See
> [http://lists.libsdl.org/pipermail/sdl-libsdl.org/2007-March/060459.html].
> The error message suggests that it's Unix-specific, and the link above
> says it's fixed in newer freetype versions But people may still use for
> some time buggy versions --- I'm sitting on Debian testing, which is
> fairly often updated, and have this bug.
>;
> The attached patch to sdl_ttf.pas allows you to easily turn on the
> workaround of the problem. TTF_RenderGlyph_Solid will then be done by
> TTF_RenderGlyph_Shaded call with black background. (I told you it's a
> brutal workaround, right ?
>
> Hope this helps someone,
>
> Michalis
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

__._,_.___
.

__,_._,___
Re: sdl_ttf.TTF_RenderGlyph_Solid problem and workaround
country flaguser name
United States
2007-06-01 00:39:23

Dominique Louis wrote:
[...]
> btw, can you tell me which system/OS you have tested the latest beta on?

I work on Linux i386, so this is where I test. I just compile and run
various demos, GearHead, DoomRL... I use code from Jedi CVS (contents of
the zip file look like a simple snapshot of repository contents, so it's
the same ?).

I'll switch to FreeBSD (also i386) for a short time soon, so this will
also be tested.

Michalis

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )