After installing the Wing IDE editor, you will see a small square when typing in Chinese, or it is not possible to display Chinese by default. At this point we need to modify the default font for the editor.
Here's how to fix it:
The workaround is to locate the pango.aliases file.
Example: C:\Program files\wing IDE 4.1\bin\gtk-bin\etc\pango Directory
Edit pango.aliases can be opened with Notepad, or you can choose any code editor you are familiar with
The changes are as follows:
courier = "microsoft yahei"sans = "microsoft yahei"serif = "microsoft yahei"monospace = "microsoft yahei"
That is, the font is displayed as "Microsoft Jas Black".
The remaining fonts that support Chinese display are:
Some fonts for Windows:
New detail: PMingLiU
Detail: MingLiU
Target: DFKAI-SB
Blackbody: Simhei
Song Body: SimSun
New song body: Nsimsun
Imitation: Fangsong
Italics: Kaiti
Imitation _gb2312:fangsong_gb2312
Italic _gb2312:kaiti_gb2312
Micro-Black: Microsoft Jhenghei
Microsoft Elegance Blackbody: Microsoft Yahei
The Python Wing IDE Editor's Chinese display Solution