Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting the Mathematica front end to obey the FontFamily option
    primarykey
    data
    text
    <p>When it comes to Chinese characters, I am unable to get the Front End of Mathematica to use the fonts of my choice. How can I get it to use the fonts I need?</p> <p>Here I provide two screenshots to show the problem, one from Word (top), the other from Mathematica on WinXP, both displaying the same string. Note that Mathematica uses several different fonts (I guess it uses font substitution when the font it tries to use first doesn't contain a glyph---however the font I specified contains all glyphs I need!). Here I use the font Microsoft YaHei, which comes with Win7, but is <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b15774c0-5b42-48b4-8ba8-9293fdc72099" rel="nofollow noreferrer">downloadable</a> for XP too.</p> <p><strong>EDIT:</strong> Here's some test code:</p> <pre><code>str = "肖诮陗俏削帩消峭捎绡莦弰悄焇琑逍㲖㲵䏴哨娋宵屑綃梢痟睄筲艄萷销䇌䘯趙揱旓硝稍踃輎矟䌃箾蛸誚榍蕱銷鞘潲碿糏霄䴛韒髾鮹鞩魈颵" Style[str, Large, FontFamily -&gt; "SimSun"] </code></pre> <p>(SimSun comes with XP and <em>should</em> contain all these characters too, although not sure if in all versions.)</p> <p><strong>EDIT 2:</strong> I am on Windows XP (with <a href="http://www.pinyinjoe.com/pinyin/ea_setup.htm" rel="nofollow noreferrer">East Asian language support enabled</a>), I wonder if the results are different on other OSs.</p> <p><img src="https://i.stack.imgur.com/95ML4.png" alt="Fonts in Word"> <img src="https://i.stack.imgur.com/6JtBk.png" alt="Fonts in Mathematica"></p> <hr> <p><strong>Summary:</strong> It appears that the behaviour depends on the particular OS and the fonts installed, and unfortunately there seems to be no way to make the fonts uniform (even if there exists a single font containing all the glyphs).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload