I have tried with the Nim freetype library, but it does not work and there is no documentation.
I found this page with an minimal example: https://ralsina.me/weblog/posts/playing-with-nim.html
But it does not integrate with opengl and is not complete.
That answer seems to be very wrong.
NimX is a complete native Nim GUI toolkit. But He asked only about displaying text in openGL. Maybe SDL has functions for text in SDL, but I don't know.