[opensuse] font handling - install fetchmsttfonts, copy fonts, rpm -e fethmsttfonts, copy fonts back
All, When installing fonts, many people use the fetchmsttfonts package to load the public ms truetype fonts. That's fine, the only problem being is that every time the fetchmsttfonts is rebuilt (the fonts don't change, only the package version changes) the fetchmsttfonts package is downloaded again and updated. To prevent this from happening, simply install the fetchmsttfonts package once, then make a copy of /usr/share/fonts/truetype, remove the package, then copy the fonts back to /usr/share/fonts/truetype and run fonts-config. Most may not care, but if I can avoid muli-meg downloads during each `zypper up` I'm all for it (not to mention -- there are newer versions of the fonts, that if installed, are overwritten with each zypper up) So for those who want to avoid the repeated update of the font package, the following is a quick outline of the process: # zypper in fetchmsttfonts # cp -a /usr/share/fonts/truetype /tmp # rpm -e fetchmsttfonts # cp -ua /tmp/truetype /usr/share/fonts # fonts-config -f -v # creates fonts.scale & fonts.dir & calls fc-cache # rm -r /tmp/truetype ...done! Just another little efficiency tweak. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-07-17 02:29 (GMT-0400) David C. Rankin composed:
To prevent this from happening, simply install the fetchmsttfonts package once, then make a copy of /usr/share/fonts/truetype, remove the package, then copy the fonts back to /usr/share/fonts/truetype and run fonts-config. Most may not care, but if I can avoid muli-meg downloads during each `zypper up` I'm all for it (not to mention -- there are newer versions of the fonts, that if installed, are overwritten with each zypper up)
So for those who want to avoid the repeated update of the font package, the following is a quick outline of the process:
# zypper in fetchmsttfonts # cp -a /usr/share/fonts/truetype /tmp # rpm -e fetchmsttfonts # cp -ua /tmp/truetype /usr/share/fonts # fonts-config -f -v # creates fonts.scale & fonts.dir & calls fc-cache # rm -r /tmp/truetype
...done! Just another little efficiency tweak.
For more efficiency, put the extracted font files on a USB stick or a CD or DVD and/or a data partition that won't be formatted at installation time, such as a /home partition, e.g. in /home/fonts. Then instead of monkeying around in a /usr that will be formatted at installation time, for each user's $HOME one time simply ln -s ../fonts ./.fonts. They'll get picked up as if they had been installed in /usr/share/fonts* without any need to upgrade any fonts cache, or do anything at all at subsequent installation times. Same goes for fonts from any other sources, including DejaVu and others that you don't care to repeatedly upgrade that are available in .zip or .tgz archives. What I'd really like is for KDE* not to "depend" on the huge misc-fixed bitmap font package that seems to be "upgraded" at least every month, and do the same for it. I never use misc-fixed longer than it takes to deselect it and select Droid Sans Mono as monospace in first open of personal settings, before first open of Konsole. I can't imagine anyone preferring misc-fixed to any of the scalable fonts installed by default via anything resembling a standard openSUSE installation. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/17/2014 02:52 AM, Felix Miata wrote:
HOME one time simply ln -s ../fonts ./.fonts. They'll get picked up as if they had been installed in /usr/share/fonts* without any need to upgrade any fonts cache, or do anything at all at subsequent installation times.
Same goes for fonts from any other sources, including DejaVu and others that you don't care to repeatedly upgrade that are available in .zip or .tgz archives.
What I'd really like is for KDE* not to "depend" on the huge misc-fixed bitmap font package that seems to be "upgraded" at least every month, and do the same for it. I never use misc-fixed longer than it takes to deselect it and select Droid Sans Mono as monospace in first open of personal settings, before first open of Konsole. I can't imagine anyone preferring misc-fixed to any of the scalable fonts installed by default via anything resembling a standard openSUSE installation.
Agreed, the only fly in this ointment is ~/.fonts is deprecated :( Still works in 13.1, but who knows when it is going away? From /etc/fonts/fonts.conf: <!-- Font directory list --> <dir>/usr/share/fonts</dir> <dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/opt/kde3/share/fonts</dir> <dir>/usr/local/share/fonts</dir> <dir prefix="xdg">fonts</dir> <!-- the following element will be removed in the future --> <dir>~/.fonts</dir> ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-07-17 03:35 (GMT-0500) David C. Rankin composed:
Agreed, the only fly in this ointment is ~/.fonts is deprecated :(
Still works in 13.1, but who knows when it is going away? From /etc/fonts/fonts.conf:
Surely there is or will be by the time of removal another way to have fonts installed specifically per-user. <<!-- Font directory list --> Seems to me from reading that same file that ~/.fonts could be kept by those wanting it by adding it to /etc/fonts/local/conf. For those not requiring per user fonts, that same fonts.conf file shows /usr/local/share/fonts should fill the bill even easier whenever /usr/local is kept on its own partition or a bind mount is used from elsewhere. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/17/2014 03:58 AM, Felix Miata wrote:
For those not requiring per user fonts, that same fonts.conf file shows /usr/local/share/fonts should fill the bill even easier whenever /usr/local is kept on its own partition or a bind mount is used from elsewhere.
The is more properly the correct place for it. But rather than separating out the fonts installed in /usr/share and /usr/local/share, I've always just dumped them back in /usr/share. It would be beneficial to take the time and pull my fonts out of /usr/share and put them in /usr/local/share -- would make moving them a whole lot easier. +1 added to my bucket list :) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-07-17 a las 01:29 -0500, David C. Rankin escribió:
So for those who want to avoid the repeated update of the font package, the following is a quick outline of the process:
# zypper in fetchmsttfonts # cp -a /usr/share/fonts/truetype /tmp # rpm -e fetchmsttfonts # cp -ua /tmp/truetype /usr/share/fonts # fonts-config -f -v # creates fonts.scale & fonts.dir & calls fc-cache # rm -r /tmp/truetype
...done! Just another little efficiency tweak.
Thanks! I must look at this. Sometimes what I do, is copy over those fonts from the Windows partition. There is one particular font I use that is not downloaded, I think it is arial narrow. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlPHiukACgkQja8UbcUWM1wF+gD8DyUCMr8zx1o0pIrxCHffgW1A wU/m5Gf4BUdyQPcs9UoBAJgS4/g00VAICBg4/+a/YsNXcYokrXuSfiBMTUZjlZmX =+5xA -----END PGP SIGNATURE-----
Hi, I would also try to fix this in build-compare to avoid fetchmsttfonts republished on every rebuild. Ciao, Marcus On Thu, Jul 17, 2014 at 01:29:48AM -0500, David C. Rankin wrote:
All,
When installing fonts, many people use the fetchmsttfonts package to load the public ms truetype fonts. That's fine, the only problem being is that every time the fetchmsttfonts is rebuilt (the fonts don't change, only the package version changes) the fetchmsttfonts package is downloaded again and updated.
To prevent this from happening, simply install the fetchmsttfonts package once, then make a copy of /usr/share/fonts/truetype, remove the package, then copy the fonts back to /usr/share/fonts/truetype and run fonts-config. Most may not care, but if I can avoid muli-meg downloads during each `zypper up` I'm all for it (not to mention -- there are newer versions of the fonts, that if installed, are overwritten with each zypper up)
So for those who want to avoid the repeated update of the font package, the following is a quick outline of the process:
# zypper in fetchmsttfonts # cp -a /usr/share/fonts/truetype /tmp # rpm -e fetchmsttfonts # cp -ua /tmp/truetype /usr/share/fonts # fonts-config -f -v # creates fonts.scale & fonts.dir & calls fc-cache # rm -r /tmp/truetype
...done! Just another little efficiency tweak.
-- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
David C. Rankin
-
Felix Miata
-
Marcus Meissner