Skip to content

Instantly share code, notes, and snippets.

@discountry
Created January 31, 2026 03:08
Show Gist options
  • Select an option

  • Save discountry/7545c4c266b2d0106f8fe48129864cef to your computer and use it in GitHub Desktop.

Select an option

Save discountry/7545c4c266b2d0106f8fe48129864cef to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
echo "==> Updating apt..."
sudo apt update
echo "==> Installing Chinese fonts (Noto CJK + WenQuanYi)..."
sudo apt install -y \
fontconfig \
fonts-noto-cjk \
fonts-noto-cjk-extra \
fonts-wqy-zenhei \
fonts-wqy-microhei
echo "==> Installing Emoji fonts (Noto Color Emoji)..."
sudo apt install -y \
fonts-noto-color-emoji
echo "==> Refreshing font cache..."
sudo fc-cache -fv
echo "==> Verifying installed fonts..."
echo "--- Chinese fonts ---"
fc-list | grep -E "Noto.*CJK|WenQuanYi|wqy" | head -n 10 || true
echo "--- Emoji fonts ---"
fc-list | grep -i emoji | head -n 10 || true
echo "==> Done."
echo "Restart Chrome to apply changes:"
echo " pkill chrome"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment