Skip to content

Instantly share code, notes, and snippets.

@zmwangx
Created October 20, 2018 17:19
Show Gist options
  • Save zmwangx/0d638102c04818f84176dc83096fb46e to your computer and use it in GitHub Desktop.
Save zmwangx/0d638102c04818f84176dc83096fb46e to your computer and use it in GitHub Desktop.
How to make Chinese filenames not so ugly in Windows 10
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="-segoeui.ttf"
"Segoe UI Black (TrueType)"="-seguibl.ttf"
"Segoe UI Black Italic (TrueType)"="-seguibli.ttf"
"Segoe UI Bold (TrueType)"="-segoeuib.ttf"
"Segoe UI Bold Italic (TrueType)"="-segoeuiz.ttf"
"Segoe UI Emoji (TrueType)"="-seguiemj.ttf"
"Segoe UI Historic (TrueType)"="-seguihis.ttf"
"Segoe UI Italic (TrueType)"="-segoeuii.ttf"
"Segoe UI Light (TrueType)"="-segoeuil.ttf"
"Segoe UI Light Italic (TrueType)"="-seguili.ttf"
"Segoe UI Semibold (TrueType)"="-seguisb.ttf"
"Segoe UI Semibold Italic (TrueType)"="-seguisbi.ttf"
"Segoe UI Semilight (TrueType)"="-segoeuisl.ttf"
"Segoe UI Semilight Italic (TrueType)"="-seguisli.ttf"
"Segoe UI Symbol (TrueType)"="seguisym.ttf"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Segoe UI"="Microsoft YaHei UI"

Chinese filenames in Windows 10 (English version) are displayed in what appaers to some variant of MS Gothic, and they look absolutely fucking horrible. Installing more fonts or language packs was useless. I tried HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink\Segoe UI and moved MS UI Gothic all the way down, but that didn't seem to do shit. I also tried sabotaging HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\MS Gothic & MS UI Gothic & MS PGothic (TrueType) by giving it an invalid value, but that didn't seem to do shit either. In the end, I took a wholesale approach and simply replaced the Segoe UI family with the Microsoft YaHei family (see fonts.reg), Microsoft YaHei isn't pretty either, but at least it's tolerable.

Credit: https://www.windowscentral.com/how-change-default-system-font-windows-10

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="segoeui.ttf"
"Segoe UI Black (TrueType)"="seguibl.ttf"
"Segoe UI Black Italic (TrueType)"="seguibli.ttf"
"Segoe UI Bold (TrueType)"="segoeuib.ttf"
"Segoe UI Bold Italic (TrueType)"="segoeuiz.ttf"
"Segoe UI Emoji (TrueType)"="seguiemj.ttf"
"Segoe UI Historic (TrueType)"="seguihis.ttf"
"Segoe UI Italic (TrueType)"="segoeuii.ttf"
"Segoe UI Light (TrueType)"="segoeuil.ttf"
"Segoe UI Light Italic (TrueType)"="seguili.ttf"
"Segoe UI Semibold (TrueType)"="seguisb.ttf"
"Segoe UI Semibold Italic (TrueType)"="seguisbi.ttf"
"Segoe UI Semilight (TrueType)"="segoeuisl.ttf"
"Segoe UI Semilight Italic (TrueType)"="seguisli.ttf"
"Segoe UI Symbol (TrueType)"="seguisym.ttf"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Segoe UI"=-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment