diff --git a/README.rst b/README.rst index 9d2b707d..4d298fab 100644 --- a/README.rst +++ b/README.rst @@ -96,3 +96,8 @@ explicitly allowed. A fontconfig file is provided which enables it. Copy `this file `_ 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. diff --git a/install.sh b/install.sh old mode 100755 new mode 100644 index eab1ccd0..88e3b7b1 --- a/install.sh +++ b/install.sh @@ -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" @@ -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" diff --git a/uninstall.sh b/uninstall.sh old mode 100755 new mode 100644 index 36f17e97..1606e56a --- a/uninstall.sh +++ b/uninstall.sh @@ -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"