Code Hackery #2: Characters on a Texture

Alright so I said every week, but I really meant week-ish. To be honest, I’ve had some trouble actually finding some nice code to put for this post, so I’m going to more explain something I recently did with the Wurm client. I cannot post the actual code for NDA reasons, but I’ll give some examples. This week is a bit of easy code I whipped up for the Wurm client when I was working on replacing the old, notoriously slow text rendering code. I originally had the FontTexture object drawing all of the ASCII characters to a texture, and believed that would be enough (and in terms of performance, it would’ve been), but this also meant that any other characters that were previously supported – cyrillic, greek, etc – would either crash everything, or just show nothing.   In Wurm there are plenty of different people playing, plenty of … Continue reading