Rendering text in android

I have started a small project that I plan to port to Android later and
I need to render texts (well, every game does it), my question is, what
solution can I use to that? I have some experience with sdl-ttf, but I
guess it is not ported yet to Android.–
Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible

2013/1/14 <luo_hei at yahoo.es>

I have started a small project that I plan to port to Android later and I
need to render texts (well, every game does it), my question is, what
solution can I use to that? I have some experience with sdl-ttf, but I
guess it is not ported yet to Android.–

SDL_ttf works on Android and comes with the Android.mk file to make
compiling easier (http://hg.libsdl.org/SDL_ttf/file/746e6155bc9a/Android.mk),
you need to cross compile Freetype with the Android NDK though.

Gabriel.

SDL_ttf does work on Android. You have to use SDL2, put the SDL_ttf
directory into jni/, and put the FreeType sources in a new directory called
"freetype" in SDL_ttf/. Then ndk-build should pick up SDL_ttf’s Android.mk
and do the rest. Of course, you have to add the linker flags and Java lib
loading line in SDLActivity.java.

Jonny DOn Mon, Jan 14, 2013 at 9:14 AM, <luo_hei at yahoo.es> wrote:

I have started a small project that I plan to port to Android later and I
need to render texts (well, every game does it), my question is, what
solution can I use to that? I have some experience with sdl-ttf, but I
guess it is not ported yet to Android.


Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks a lot! And what about SDL-image and SDL-mixer? Are they easily
portable to Android?On 01/14/2013 09:24 AM, Jonathan Dearborn wrote:

SDL_ttf does work on Android. You have to use SDL2, put the SDL_ttf
directory into jni/, and put the FreeType sources in a new directory
called “freetype” in SDL_ttf/. Then ndk-build should pick up SDL_ttf’s
Android.mk and do the rest. Of course, you have to add the linker flags
and Java lib loading line in SDLActivity.java.


Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible

They definitely work too, but I haven’t tried SDL_image myself yet. I had
trouble getting MikMod working, but without it SDL_mixer works for me.

Jonny DOn Mon, Jan 14, 2013 at 9:55 AM, <luo_hei at yahoo.es> wrote:

On 01/14/2013 09:24 AM, Jonathan Dearborn wrote:

SDL_ttf does work on Android. You have to use SDL2, put the SDL_ttf
directory into jni/, and put the FreeType sources in a new directory
called “freetype” in SDL_ttf/. Then ndk-build should pick up SDL_ttf’s
Android.mk and do the rest. Of course, you have to add the linker flags
and Java lib loading line in SDLActivity.java.

Thanks a lot! And what about SDL-image and SDL-mixer? Are they easily
portable to Android?


Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I can confirm that the whole SDL suite works fine on Android.
VittorioOn Mon, Jan 14, 2013 at 3:55 PM, <luo_hei at yahoo.es> wrote:

On 01/14/2013 09:24 AM, Jonathan Dearborn wrote:

SDL_ttf does work on Android. You have to use SDL2, put the SDL_ttf
directory into jni/, and put the FreeType sources in a new directory
called “freetype” in SDL_ttf/. Then ndk-build should pick up SDL_ttf’s
Android.mk and do the rest. Of course, you have to add the linker flags
and Java lib loading line in SDLActivity.java.

Thanks a lot! And what about SDL-image and SDL-mixer? Are they easily
portable to Android?


Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org