• Advertisement
Sign in to follow this  

How to rendering unicode characters(chinese)

This topic is 1386 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm wondering how those MMO(like world of warcarft) games render unicode characters(Chinese). Typically, those games have a message system where you can type any word and display it. They can also show big chunk of words for "task description", "weapon description" and etc. 

 

I used bitmap texture to render English characters in my engine, but bitmap texture for Chinese would be a memory eating monster considering there are roughly 10k of them. What technique do those games usually use to render unicode characters? 

Share this post


Link to post
Share on other sites
Advertisement
If you don't have player chat, you can look at all your description text to find the set of required characters and then build a bitmap font with just those chars in it.
If you do have user chat, you need a system that generates bitmap fonts at runtime from TTF/etc files. Creating characters as required and deleting unused ones after a while.

You can also save a lot of memory by using signed distance field bitmaps instead of RGBA images.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement