You are not logged in.
Hi!
I want to work in my system with some fonts installed and without them, switching between these two modes. I need the system with MS fonts for Web-development and without MS fonts for Web-surfing. And to install and delete them when I need to switch is not an option. So is it possible to somehow mark MS font packages as present or absent and switch this condition (maybe several times per day)?
Offline
Weather or not your system uses the fonts has nothing to with the package or package manager. You could write a script to make the fonts in ttf-ms-fonts read-only and than update the font cache.
Something like this (untested) should work:
# Hide:
chmod a-r $(pacman -Qlq ttf-ms-fonts | grep '/usr/share/fonts/TTF/'|xargs)
fc-cache -f '/usr/share/fonts/TTF/'
# Show
chmod a+r $(pacman -Qlq ttf-ms-fonts | grep '/usr/share/fonts/TTF/'|xargs)
fc-cache -f '/usr/share/fonts/TTF/'Offline