If that was the case, you should not be able to display more than a few thousand lines of code either (and Code::Blocks confirmedly handles 1.9 million lines of code).
Also, if it was limited by the coordinates, then using a font twice as large should make the bug occur after displaying half as many characters.