Sublime Text3 Chinese misplacement solution

When printing the list using the prettytable library, I accidentally found that the same Chinese and English mixed string table can be aligned and displayed on the Windows console and NotePad++, but cannot be displayed on SublimeText3 and EmEditor:

Windows console (can be aligned and displayed):
Insert picture description here

EmEditor (cannot be displayed aligned):
Insert picture description here

SublimeText3 (Unable to align the display before the software parameters are modified):
Insert picture description here

NotePad++ (Can align display)
Insert picture description here

SublimeText3 parameter modification method: Prefernces>Settings
add statement as shown below:

	"font_options":["gdi"]

Insert picture description here


SublimeText3 can be aligned and displayed after modifying the software parameters (it can be aligned and displayed before the software parameters are not modified):
Insert picture description here

Test string (UTF-8):

+------------------+------------+---------------+---------------+
| "质量流量(kg/s)" | "雷诺数"   | "湍流强度(%)" | "水力直径(m)" |
+------------------+------------+---------------+---------------+
| 0.04             | 9779814.46 | 2.14          | 0.0           |
| 0.04             | 9779814.46 | 2.14          | 0.0           |
| 0.04             | 9779814.46 | 2.14          | 0.0           |
| 0.05             | 10594799.0 | 2.12          | 0.01          |
+------------------+------------+---------------+---------------+
-------------+------------+---------------+---------------+

Guess you like

Origin blog.csdn.net/caviar126/article/details/114121976