Font fallback for CJK characters should follow Visual Studio
For following code:
var pi = 3.14; var ch = "这是一些中文";
And font set to default(Consolas), looks like this in LINQPad:
The Chinese characters is different than Visual Studio(which also already set font to "Consolas"):
I think the default font for CJK characters is Microsoft YaHei / Microsoft YaHei UI font family (when Consolas is set), and default font for CJK characters is SimSun & NSimSun font family.
Maybe LINQPad can also follow the same behavior using Microsoft YaHei as default font fallback?
Comments
The editor that I'm using uses User32::DrawText, so I don't think I can change the fallback font from the default which I believe comes from the Windows Registry:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
Keep in mind that Consolas and NSimSun are fixed-pitched whereas YaHei is proportional. Substituting a fixed-pitch with a proportional character may or may not play well with the editor.