rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Use Freetype inspired error numbering system, while keeping compatibi… #166

Closed forthy42 closed 3 years ago

forthy42 commented 7 years ago

…lity with existing freetype-gl applications

Return values are still the same (NULL or 0 for errors). I've deleted the exit() calls, as a library never should exit on its own, even when the errors are fatal. Freetype errors are passed through. There's a hook for printing errors, so that the default behavior still is to print errors on stderr, but by changing the hook, applications can redirect the errors.

rougier commented 7 years ago

Looks good to me. @adrianbroher Can you have a look ?