Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am creating an application which downloads names from server. These names can be any unicode language text which I need to render in XNA on WP7. The biggest problem I see here is WP7 xna system can't render unicode (especially complex script) well. I tried few asian scripts and it looks ridiculous. Some aisan scripts render a character differently depending on neighbor character (generally vowels). Spritefont just renders them one after another without giving any consideration to vowels.

I think I need something like freetype library to render vector fonts on runtime. I wish to know if there are any alternatives to overcome this issue.

share|improve this question
    
What font did you add as a spritefont? If you use the same font and type the same characters into Word, do they show up as expected? –  Nate May 20 '11 at 21:26
    
@Nate Yes, I did some investigation into this. It seems like XNA dont have any support for Complex Text Layout (CTL - en.wikipedia.org/wiki/Complex_text_layout). I looked into shwan's blog - blogs.msdn.com/b/shawnhar/archive/2007/04/26/…. Its very surprising. I dont know how others handle this situation. –  Vijayendra Tripathi May 21 '11 at 6:45
add comment

2 Answers

I don't know if it supports all the fonts you're interested in, and it's rather old so there will certainly be some translation effort if you want to use it. But I figured I may as well post it in case it's useful:

http://blogs.msdn.com/b/manders/archive/2007/01/12/stroke-based-text-rendering-in-xna.aspx

share|improve this answer
    
Thanks so much Joel. Looks useful. But I think Mango Update for WP7 will resolve the issue. –  Vijayendra Tripathi Jun 5 '11 at 9:29
add comment
up vote 1 down vote accepted

Recently Microsoft announced using silverlight to render unicode texts in XNA with its mango update for WP7. I think this might solve this issue. I think one just needs to render TextBlock control into XNA, which can handle unicode well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.