ColleagueRiley / RFont

Simple-to-use single header modular font rendering library written in C.
zlib License
25 stars 2 forks source link

Texts starts to bug out and erase letters when the string length is < 177 #3

Closed ColleagueRiley closed 9 months ago

ColleagueRiley commented 9 months ago

Note, this issue is only here for the sake of organization, documentation and not losing track of issues. I plan on fixing this issue.

image

ColleagueRiley commented 9 months ago

Note : this does not happen if you draw < 177 things individually.

ColleagueRiley commented 9 months ago

I simply changed

   static float verts[1024 * 2];
   static float tcoords[1024 * 2];

to

   static float verts[1024 * 6];
   static float tcoords[1024 * 6];