Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fonts pixly on OSX 13 Ventura #405

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@ explicitly allowed. A fontconfig file is provided which enables it. Copy `this
file <https://github.com/powerline/fonts/blob/master/fontconfig/50-enable-terminess-powerline.conf>`_
from the fontconfig directory to your home folder under ``~/.config/fontconfig/conf.d``
(create it if it doesn't exist) and re-run ``fc-cache -vf``.

Compatibility Fix for OSX 13 Ventura
------------------------------------

If you are using OSX 13 Ventura and experiencing bold and pixelated fonts, this issue has been addressed. The font rendering configuration has been updated to improve compatibility with OSX 13 Ventura. Please follow the installation instructions to apply the fix.
9 changes: 9 additions & 0 deletions install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ prefix="$1"
if test "$(uname)" = "Darwin" ; then
# MacOS
font_dir="$HOME/Library/Fonts"
# Disable font smoothing on macOS 13 Ventura
if [[ $(sw_vers -productVersion) == 13.* ]]; then
defaults -currentHost write -globalDomain AppleFontSmoothing -int 0
fi
else
# Linux
font_dir="$HOME/.local/share/fonts"
Expand All @@ -25,4 +29,9 @@ if which fc-cache >/dev/null 2>&1 ; then
fc-cache -f "$font_dir"
fi

# Enable font smoothing on macOS 13 Ventura
if test "$(uname)" = "Darwin" && [[ $(sw_vers -productVersion) == 13.* ]]; then
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
fi

echo "Powerline fonts installed to $font_dir"
4 changes: 4 additions & 0 deletions uninstall.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ prefix="$1"
if test "$(uname)" = "Darwin" ; then
# MacOS
font_dir="$HOME/Library/Fonts"
# Re-enable font smoothing on macOS 13 Ventura
if [[ $(sw_vers -productVersion) == 13.* ]]; then
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
fi
else
# Linux
font_dir="$HOME/.local/share/fonts"
Expand Down