Fonts SDL2

Hi, I’m in the process of creating a binding for SDL2.
I want to start writing some basic GUI code, for which I need text.

SDL_ttf 2.011 is documented as requiring SDL 1.2.
Would this work with SDL2 perhaps?–
john skaller
@john_skaller
http://felix-lang.org

Compile SDL_ttf against SDL 2.0, and you’ll be all set. I think Sam may
have recently mentioned a release candidate for SDL2_ttf, so you may be
able to avoid compiling things yourself.

Hope that helps,
-AlexOn Mon, Jun 10, 2013 at 9:14 AM, john skaller <skaller at users.sourceforge.net wrote:

Hi, I’m in the process of creating a binding for SDL2.
I want to start writing some basic GUI code, for which I need text.

SDL_ttf 2.011 is documented as requiring SDL 1.2.
Would this work with SDL2 perhaps?


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Compile SDL_ttf against SDL 2.0, and you’ll be all set.

OK, I’ll try!

I think Sam may have recently mentioned a release candidate for SDL2_ttf, so you may be able to avoid compiling things yourself.

I want to compile things myself.

yeah, I know I’m weird :)On 10/06/2013, at 11:18 PM, Alex Barry wrote:


john skaller
@john_skaller
http://felix-lang.org

Try building with the SDL_ttf release candidate?
http://www.libsdl.org/tmp/SDL_ttf/#sourceOn Mon, Jun 10, 2013 at 6:14 AM, john skaller <skaller at users.sourceforge.net wrote:

Hi, I’m in the process of creating a binding for SDL2.
I want to start writing some basic GUI code, for which I need text.

SDL_ttf 2.011 is documented as requiring SDL 1.2.
Would this work with SDL2 perhaps?


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Try building with the SDL_ttf release candidate?
http://www.libsdl.org/tmp/SDL_ttf/#source

SDL_ttf.c:27:22: error: ft2build.h: No such file or directory

That’s using the tarball.
I can try the Mercurial repository if you would be so kind as to give the exact command.On 11/06/2013, at 4:25 PM, Sam Lantinga wrote:


john skaller
@john_skaller
http://felix-lang.org

What platform are you building on?

If you re-download the source it should have a working version of FreeType
that you can install if necessary.On Mon, Jun 10, 2013 at 11:51 PM, john skaller < skaller at users.sourceforge.net> wrote:

On 11/06/2013, at 4:25 PM, Sam Lantinga wrote:

Try building with the SDL_ttf release candidate?
http://www.libsdl.org/tmp/SDL_ttf/#source

SDL_ttf.c:27:22: error: ft2build.h: No such file or directory

That’s using the tarball.
I can try the Mercurial repository if you would be so kind as to give the
exact command.


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

What platform are you building on?

If you re-download the source it should have a working version of FreeType that you can install if necessary.

OSX Snow Leopard (10.6.3)

/felix>freetype-config --version
12.2.6On 11/06/2013, at 5:10 PM, Sam Lantinga wrote:

On Mon, Jun 10, 2013 at 11:51 PM, john skaller <@john_skaller> wrote:

On 11/06/2013, at 4:25 PM, Sam Lantinga wrote:

Try building with the SDL_ttf release candidate?
http://www.libsdl.org/tmp/SDL_ttf/#source

SDL_ttf.c:27:22: error: ft2build.h: No such file or directory

That’s using the tarball.
I can try the Mercurial repository if you would be so kind as to give the exact command.


john skaller
@john_skaller
http://felix-lang.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


john skaller
@john_skaller
http://felix-lang.org

What platform are you building on?

If you re-download the source it should have a working version of FreeType that you can install if necessary.

Ok, I have built the latest freetype 2.4.12.
SDL_ttf compiles with that fine.

however the demo is out of date:

http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_demos.tar.gz

Is still using SDL 1.x. Any chance of a quick fix by anyone?On 11/06/2013, at 5:10 PM, Sam Lantinga wrote:


john skaller
@john_skaller
http://felix-lang.org

What platform are you building on?

Ok, I can confirm at least one small subset of functionality
on OSX 10.6, app compiled with C++ clang svn 3.3, is able
to render a font onto a window surface! Using “unix install
at /usr/local/” for both SDL and TTF.

Thanks! Good work! +1On 15/06/2013, at 12:28 AM, john skaller wrote:

On 11/06/2013, at 5:10 PM, Sam Lantinga wrote:


john skaller
@john_skaller
http://felix-lang.org