How does Windows 7 map Chinese .TTF font files into the native Chinese font name? If no such info is in the actual TrueType font file?

For example: Chinese version of Windows 7 contains msyh.ttf file which is a regular Microsoft YaHei font.

Any font viewer will show this exact font name - exept Windows 7 itself. GDI font enumeration routine returns '微软雅黑' as a name.

Where does the actual mapping happen? Anyone know the mapping scheme? Thank you.

link|improve this question
feedback

migrated from stackoverflow.com Apr 14 '11 at 1:19

This question came from our site for professional and enthusiast programmers.

1 Answer

True type fonts have their names embedded inside.

Try this link for more info.

http://www.codeproject.com/KB/GDI/fontnamefromfile.aspx

link|improve this answer
Yes, the English name is embedded, but I need the native (Chinese characters) name. Do you know where this mapping happens? – Alex Apr 13 '11 at 23:58
There are a number of names within the TTF file, Check out the naming table. Try this link TTF Naming Table – Jason Apr 14 '11 at 0:13
feedback

Your Answer

 
or
required, but never shown