Back in business with SDL_ttf
I posted about starting to learn SDL v1.2 coding, then came to a halt at Lesson 07, when a SDL_ttf function failed:
https://bkhome.org/news/202301/started-learning-sdl-v12-came-to-a-stop.html
I suppose that I could trace the code, find where the function is failing; however, I took a punt. Sometimes, older versions of a package are better. Developers may start off with something that works, then they add more features and clever things.
My punt is, went to the SDL source releases site, and downloaded one of the first SDL_ttf packages that supports freetype2; package 'SDL_ttf-2.0.3.tar.gz':
https://www.libsdl.org/projects/SDL_ttf/release/
Compiled it:
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=x86_64-pc-linux-gnu
# make
# make install
And it works! So ancient, 2.0.3 was released in 2001. That's one of the great things about C code, ancient code still compiles.
I got a test program from Matt Wilson:
https://sdl.libsdl.narkive.com/pCAeATJU/ttf
...used 'lazy.ttf' from Lesson 07, and it worked. So then tried Lesson 07 again:
Good, on to Lesson 08!
Tags: easy