Sdl_ttf

I can’t render solid text. I rendered blended, and shaded text.
TTF_RenderText_Solid() returns NULL.
I tryed to use cout <<TTF_GetError()<<endl; But nothing comes out
besides a new line. I tryed using the fonts: FreeSans.ttf and
FreeMono.ttf but nothing works.

I think I’ve heard this before. I recently had to alter my xmame front-end,
because one of my users had the same problem you describe. Which distribution
are you running, and where did you get your FreeType and SDL libraries from?

Regards,

Pieter HulshoffOn Friday 21 November 2003 02:13, root wrote:

I can’t render solid text. I rendered blended, and shaded text.
TTF_RenderText_Solid() returns NULL.
I tryed to use cout <<TTF_GetError()<<endl; But nothing comes out
besides a new line. I tryed using the fonts: FreeSans.ttf and
FreeMono.ttf but nothing works.

Hi,

is there any possibility to load the font data from a memory buffer?

Chris

C.K. escreveu:

is there any possibility to load the font data from a memory buffer?

Yes, just use SDL_RWFromConstMem + TTF_OpenFontRW.

See:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fRWFromConstMem
http://jcatki.no-ip.org/SDL_ttf/SDL_ttf_15.html#SEC15--
Daniel K. O.

C.K. wrote:

Hi,

is there any possibility to load the font data from a memory buffer?

Chris

of course,

see SDL_RWops

 .bill

It doesn’t seem to be a makefile for DevC with this library. Has anyone
compiled the library for this compiler and if so, could you email via
attachment to me? I’d greatly appreciate it. I have the source and if
I’m right, placing the header files in the include directory and the
library file in the lib directory should be enough for me to include it
in the source file of my project (plus the library include in the
project options).

Thanks in advance,
Glenn

Hi Guys
Is SDL_ttf still being developed? as i would like to suggest a
feature, “Kerning” as at present to add extra space between the letters i
have to plot one letter at a time which is slow and a pain, A simple
additional value which is added to the spacing of the letters would be an
easy yet useful addition to SDL_ttf.

Trish

Hi Patricia,

I developed a C++ font class that already handles kerning (and other effects via an animation feature). It’s only for bitmap fonts, however, and not TrueType (though you can quickly make those fonts with the tools I provide) and it’s C++, not C. If that’s something that interests you, send me an email.

Jonny D

Hi Guys
Is SDL_ttf still being developed? as i would like to suggest a feature, “Kerning” as at present to add extra space between the letters i have to plot one letter at a time which is slow and a pain, A simple additional value which is added to the spacing of the letters would be an easy yet useful addition to SDL_ttf.

TrishDate: Fri, 15 Jun 2007 17:08:44 +0700From: patricia.curtis at gmail.comTo: sdl at lists.libsdl.orgSubject: [SDL] SDL_TTF


Live Earth is coming.? Learn more about the hottest summer event - only on MSN.
http://liveearth.msn.com?source=msntaglineliveearthwlm

Hi Guys
Is SDL_ttf still being developed? as i would like to suggest a
feature, “Kerning” as at present to add extra space between the letters i
have to plot one letter at a time which is slow and a pain, A simple
additional value which is added to the spacing of the letters would be an
easy yet useful addition to SDL_ttf.

Sure!

Go ahead and submit a patch for it, and I’ll consider it for the next
major release.

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