So a few days ago I finally managed to get STBTrueType working. Then yesterday, I updated my NVIDIA drivers, and everything started failing again. After trying just about everything short of a goat sacrifice, on a whim I decided to fiddle around with my window hints. I removed the hints that explicitly assign an OpenGL profile and, like magic, my font rendering worked again.
Using this line, the font rendering doesn't work:
GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE);
Using this line, it does:
GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_COMPAT_PROFILE);
I'm not quite sure what's going on here, does STBTrueType depend on some deprecated functions or something? Although I suppose that doesn't make any sense, since it worked just a few days ago? To be fair, my NVIDIA drivers were supposed to be updated a few months ago, but I'm not sure that should make any difference, should it?