Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active March 6, 2024 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggplants/80e52966765fbad2753b5e57b9b4397d to your computer and use it in GitHub Desktop.
Save eggplants/80e52966765fbad2753b5e57b9b4397d to your computer and use it in GitHub Desktop.
https://qiita.com/kerorinfather/items/7af537ba65693015fdc8 を改変 - Wineの日本語フォントが豆腐になる問題を修正
#!/usr/bin/env bash
mkdir fonts
cd fonts
wget https://ja.osdn.net/projects/ume-font/downloads/22212/umefont_670.tar.xz
tar Jxfv umefont_670.tar.xz
mv umefont_670/*.ttf /Library/Fonts
mkdir NotoSansCJKjp
cd NotoSansCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip
unzip NotoSansCJKjp-hinted.zip
cd ..
mv NotoSansCJKjp/*.otf /Library/Fonts
mkdir NotoSerifCJKjp
cd NotoSerifCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSerifCJKjp-hinted.zip
unzip NotoSerifCJKjp-hinted.zip
cd ..
mv NotoSerifCJKjp/*.otf /Library/Fonts
wget https://gist.githubusercontent.com/nogajun/6095ed8488ef9449e63dc1ce578ae55e/raw/85ced2a3dd8a8ed960e3de96b2127f960cfc1de6/wine-japanese.reg
regedit wine-japanese.reg
cd ..
rm -rf fonts
#!/usr/bin/env bash
mkdir fonts
cd fonts
wget https://ja.osdn.net/projects/ume-font/downloads/22212/umefont_670.tar.xz
tar Jxfv umefont_670.tar.xz
sudo mv umefont_670 /usr/share/fonts/truetype/
mkdir NotoSansCJKjp
cd NotoSansCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip
unzip NotoSansCJKjp-hinted.zip
cd ..
sudo mv NotoSansCJKjp /usr/share/fonts/opentype/
mkdir NotoSerifCJKjp
cd NotoSerifCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSerifCJKjp-hinted.zip
unzip NotoSerifCJKjp-hinted.zip
cd ..
sudo mv NotoSerifCJKjp /usr/share/fonts/opentype/
wget https://gist.githubusercontent.com/nogajun/6095ed8488ef9449e63dc1ce578ae55e/raw/85ced2a3dd8a8ed960e3de96b2127f960cfc1de6/wine-japanese.reg
regedit wine-japanese.reg
cd ..
rm -rf fonts
@eggplants
Copy link
Author

eggplants commented Mar 28, 2022

Utauで確認

# Install Utau
wget http://utau2008.xrea.jp/utau0418e-inst.zip
unzip utau0418e-inst.zip
LANG=ja_JP.UTF-8 wine utau0418e-inst.exe

# Launch
LANG=ja_JP.UTF-8 wine ~/.wine/drive_c/Program\ Files\ \(x86\)/UTAU/utau.exe

@eggplants
Copy link
Author

image

@eggplants
Copy link
Author

これでダメなら winetricks allfonts

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