The libSDL_ttf code shares one FreeType instance
for all fonts that are loaded. This means that
simultaneous operations on multiple fonts will
cause data corruption.

I notice that the code is only 1748 lines long.
Perhaps I should just toss it into src/tuxpaint.c
and fix up the thread safety bugs?

I can just delete the threaded font code.

Assuming libSDL_ttf gets fixed, Tux Paint could
check the version info. Then, if the library is
not thread-safe, Tux Paint can just scan for all
fonts in the main thread.


_______________________________________________
Tuxpaint-dev mailing list
Tuxpaint-dev@tux4kids.net
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to