How to set font name for dynamic Chinese font?

I can't make unity to find Chinese dynamic font files.

What I did: I copied my font(simhei.ttf) from windows/font directory to Assets folder. Then I set the font property, Character Dynamic, Style Normal, Incl. Font Data not checked, Font Names "SimHei, Arial" by default.

When I run the program, in editor or in browser under Windows XP, unity use default system characters instead of the font I assigned.

I remove the ", Arial" part from Font Names, "Failed to find fonts for font asset 'font' UnityEditor.DockArea:OnGUI()" is shown in log.

I can only use the font if I check Incl. Font Data.

Is this a bug or I did something wrong?

Btw, Unity did something wrong when import Chinese font normal ways(not dynamic). The font texture doesn't generate correctly with simsun.ttf at font size of 12,13,14,15,16,18. Some size (for example 16) of simhei.ttf also happened. Font files are double checked, nothing wrong. Definitely a bug I think.

2 Answers

2

I want to konw the answer too.

Hi,

I have made an asset for localization using Excel. Please take a look and let me know what you think !

http://u3d.as/content/dream-creations/excel-local