I've checked the code from qt4.x to qt6.5. The code is the same with the difference that instead of having QGLTextureGlyphCache, Qt uses QOpenGLTextureGlyphCache which is used with the same way. I'm almost sure that the bug still exists, but ok, I must create a simple example with Qt6.