Skip to content

Instantly share code, notes, and snippets.

@nogajun
Last active December 18, 2023 12:12
Show Gist options
  • Save nogajun/6095ed8488ef9449e63dc1ce578ae55e to your computer and use it in GitHub Desktop.
Save nogajun/6095ed8488ef9449e63dc1ce578ae55e to your computer and use it in GitHub Desktop.
LinuxのWine環境で日本語周りをいい感じに設定するレジストリデータ。Windowsで使われるフォント名置換とビットマップフォント無効、InputStyleをrootにします
Windows Registry Editor Version 5.00
' 文字コードをUTF-16リトルエンディアン、改行をCR+LFで保存してください
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo UI"="Noto Sans CJK JP"
"Meiryo"="Noto Sans CJK JP"
"MS Gothic"="Ume Gothic"
"MS Mincho"="Ume Mincho"
"MS PGothic"="Ume P Gothic"
"MS PMincho"="Ume P Mincho"
"MS Sans Serif"="Ume P Gothic"
"MS Shell Dlg"="Ume UI Gothic"
"MS UI Gothic"="Ume UI Gothic"
"MS Pゴシック"="Ume P Gothic"
"MS P明朝"="Ume P Mincho"
"MS ゴシック"="Ume Gothic"
"MS 明朝"="Ume Mincho"
"Tahoma"="Noto Sans CJK JP"
"Yu Gothic UI Light"="Noto Sans CJK JP Light"
"Yu Gothic UI Semibold"="Noto Sans CJK JP Medium"
"Yu Gothic UI Semilight"="Noto Sans CJK JP DemiLight"
"Yu Gothic UI"="Noto Sans CJK JP"
"Yu Gothic Light"="Noto Sans CJK JP DemiLight"
"Yu Gothic Medium"="Noto Sans CJK JP Medium"
"Yu Gothic"="Noto Sans CJK JP"
"Yu Mincho Demibold"="Noto Serif CJK JP SemiBold"
"Yu Mincho Light"="Noto Serif CJK JP DemiLight"
"Yu Mincho"="Noto Serif CJK JP"
"メイリオ"="Noto Sans CJK JP"
"游ゴシック"="Noto Sans CJK JP"
"游明朝"="Noto Serif CJK JP"
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ClientSideWithRender"="N"
"InputStyle"="root"
@nogajun
Copy link
Author

nogajun commented Sep 18, 2019

「めっちゃフォント汚いやんかー!」という人はビットマップフォントが有効になっているかもしれないです。
~/.config/fontconfig/fonts.confのビットマップフォントが無効になっているか確認してみてください。
参考に最小限のfonts.conf設定を貼っておきます。

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="embeddedbitmap">
   <bool>false</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment