[opensuse] SuSEconfig -module fonts
SuSEconfig has been gone for quite a while. I used to use it to add fonts via scripts. What is the correct method to add fonts (.ttf) these days? They are not in an RPM. And I do not want to run an interactive program. I googled a bit and did not see anything that addressed this. Bad search words, I guess. I don't know what I am looking for is called... -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer composed on 2017-01-23 13:58 (UTC+0100):
SuSEconfig has been gone for quite a while. I used to use it to add fonts via scripts. What is the correct method to add fonts (.ttf) these days? cp or mv
They are not in an RPM. And I do not want to run an interactive program. I googled a bit and did not see anything that addressed this. Bad search words, I guess. I don't know what I am looking for is called...
Fontconfig, which most modern apps depend on, is smart enough to find ttf and otf fonts on its own as long as they are in any standard location, e.g.: ~/.fonts/ (deprecated) ~/.local/share/fonts/ /usr/share/fonts/ /usr/local/share/fonts/ Use fc-match to test availability. If you have apps too dumb to use fontconfig, use https://wiki.archlinux.org/index.php/fonts as a guide for manual installation, or get YaST2 to "install" them. -- "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
Felix Miata wrote:
Roger Oberholtzer composed on 2017-01-23 13:58 (UTC+0100):
SuSEconfig has been gone for quite a while. I used to use it to add fonts via scripts. What is the correct method to add fonts (.ttf) these days? cp or mv
Major step left out -- rebuilding the fc cache. That can easily take
5-10 minutes depending on number of fonts installed.
BTW -- maybe it should be added as part of fontconfig's install -- but it might be very useful to setup a nightly cron job that ensures the caches are updated w/r/t the font dirs. That way if someone has made any changes to the fontdir that didn't trigger a cache rebuild, they'd be caught and automatically pulled in to the cache. If nothing has changed, the rebuild script would simply exit... Possible? Comments? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
L A Walsh composed on 2017-01-23 15:00 (UTC-0500):
Felix Miata wrote:
Roger Oberholtzer composed on 2017-01-23 13:58 (UTC+0100):
SuSEconfig has been gone for quite a while. I used to use it to add fonts via scripts. What is the correct method to add fonts (.ttf) these days?
cp or mv
Major step left out -- rebuilding the fc cache. Purposely. I can't remember ever needing it.
That can easily take 5-10 minutes depending on number of fonts installed.
It's normally been transparent here, because I start with little or nothing other than the fonts installed via minimal X originally. Even on installations exposed to more than minimal fonts, I've always found copying a font as above (actually F5 in MC is how it usually happens here) followed up by fc-match always returns an expected result immediately. -- "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
Felix Miata wrote:
Major step left out -- rebuilding the fc cache. Purposely. I can't remember ever needing it.
That can easily take 5-10 minutes depending on number of fonts installed.
It's normally been transparent here, because I start with little or nothing other than the fonts installed via minimal X originally. Even on installations exposed to more than minimal fonts, I've always found copying a font as above (actually F5 in MC is how it usually happens here) followed up by fc-match always returns an expected result immediately.
---- I used to do that, but 11+ minute startup times on vim persuaded me to not do it often. My fonts are shared between windows and *nix, so X-displays on the Windows side can display the same fonts. Have about 36 thousand font file entries of which only 20 thousand are unique. Windows further reduces the numbers into into 4367 families. The current font config doesn't recognize duplicates as duplicate nor does it seem to combine things into families and, depending on your setup, has to generate cache files for 32 and 64 bit. (If you have no 32-bit progs, it may only generate the 64-bit cache) -- in my case, with cygwin apps, many of them also need the font-config fontcache, so even more fun there... If you have few fonts, you won't see the problem, but you see many bug reports of slow application startup times on the font-config list. Simply running my dedup over the directory has guaranteed me having all X-apps using font-config being blocked until the font-caches are redone. If you start multiple apps, each app tries to regenerate the font (no locking). It's pretty ugly considering windows rebuilds its font-cache on each boot in a matter of seconds. Note that windows was able to handle 4000+k font families starting with windows 7 (maybe vista). It does take winapps, that show all fonts about 10-15 seconds to come up with a full list, but that's a heck of alot faster than an 11+ minute startup time. BTW, that 11 minutes is nearly all all CPU time -- not disk time. Their concept of installing fonts is that they are only installed via rpm, so it can be called to refresh the cache w/each font (obviously impractical if it takes multiple minutes/font). I have 208 font rpm's that add a total of 8121 files. You say you only copy files in a few at a time, yet each font rpm seems to average almost 40 files. Don't you ever install the font rpms? FWIW, I started 'gvim' (as root) shortly after running the dedup. Wow... it must be building the 32 bit cache (?) just a guess since its currently @ 21:33 (MM:SS) of cpu time for starting gvim ... doing an strace of gvim shows it just finished the upper case filenames.... hmmm.... this might be a while... Very ugly! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
L A Walsh composed on 2017-01-23 22:21 (UTC-0800):
You say you only copy files in a few at a time, yet each font rpm seems to average almost 40 files. Don't you ever install the font rpms?
Not a whole lot: # grep RETT /etc/*lease /etc/os-release:PRETTY_NAME="openSUSE Leap 42.1 (x86_64)" # rpm -qa | egrep 'fnt|font|otf|ttf' | sort adobe-sourcecodepro-fonts-2.010-14.2.noarch adobe-sourcesanspro-fonts-2.020-1.1.noarch cantarell-fonts-0.0.16-2.2.noarch ctan-latinmodern-fonts-2.004-13.2.noarch dejavu-fonts-2.34-5.1.noarch fontconfig-2.11.0-5.1.x86_64 fontconfig-32bit-2.11.0-5.1.x86_64 fonts-config-20150424-3.1.noarch ghostscript-fonts-other-9.06-7.4.noarch ghostscript-fonts-std-9.06-7.4.noarch google-carlito-fonts-1.1.03.beta1-3.2.noarch google-droid-fonts-20121204-5.1.noarch kde-oxygen-fonts-0.4.0-3.7.noarch libXfont1-1.5.1-7.1.x86_64 libXfontcache1-1.0.5-12.1.x86_64 liberation-fonts-1.07.2-3.2.noarch libfont-specimen0-20150202-3.3.x86_64 libfontenc1-1.1.3-1.1.x86_64 linux-libertine-fonts-5.3.0-10.2.noarch misc-console-font-3.5.10.1-393.1.x86_64 mkfontdir-1.0.7-10.1.x86_64 mkfontscale-1.1.2-1.1.x86_64 patterns-openSUSE-fonts-20150918-12.1.x86_64 patterns-openSUSE-fonts_opt-20150918-12.1.x86_64 stix-fonts-1.1.0-14.6.noarch xorg-x11-fonts-7.6-31.4.noarch xorg-x11-fonts-core-7.6-31.4.noarch yast2-fonts-3.1.18-6.1.x86_64 -- "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
I'm only adding a half dozen fonts (NASA LCD fonts). When I run fonts-config, it is done in a matter of seconds. I see 6009 font files in /usr/share/fonts. The fonts seem to be available. So I'm probably okay. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
L A Walsh wrote:
currently @ 21:33 (MM:SS) of cpu time for starting gvim ... doing an strace of gvim shows it just finished the upper case filenames....
---- Only took a few more minutes -- but I tried it without all the SUSE added symlinks (over 8000) and it finished in 16 minutes... from over 22 down to 16... still intolerable, but why does suse add a bunch of unneeded symlinks? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
L A Walsh composed on 2017-01-23 22:21 (UTC-0800):
You say you only copy files in a few at a time, yet each font rpm seems to average almost 40 files. Don't you ever install the font rpms?
Not a whole lot: # grep RETT /etc/*lease /etc/os-release:PRETTY_NAME="openSUSE Leap 42.1 (x86_64)" # rpm -qa | egrep 'fnt|font|otf|ttf' | sort adobe-sourcecodepro-fonts-2.010-14.2.noarch adobe-sourcesanspro-fonts-2.020-1.1.noarch cantarell-fonts-0.0.16-2.2.noarch ctan-latinmodern-fonts-2.004-13.2.noarch dejavu-fonts-2.34-5.1.noarch fontconfig-2.11.0-5.1.x86_64 fontconfig-32bit-2.11.0-5.1.x86_64 fonts-config-20150424-3.1.noarch ghostscript-fonts-other-9.06-7.4.noarch ghostscript-fonts-std-9.06-7.4.noarch google-carlito-fonts-1.1.03.beta1-3.2.noarch google-droid-fonts-20121204-5.1.noarch kde-oxygen-fonts-0.4.0-3.7.noarch libXfont1-1.5.1-7.1.x86_64 libXfontcache1-1.0.5-12.1.x86_64 liberation-fonts-1.07.2-3.2.noarch libfont-specimen0-20150202-3.3.x86_64 libfontenc1-1.1.3-1.1.x86_64 linux-libertine-fonts-5.3.0-10.2.noarch misc-console-font-3.5.10.1-393.1.x86_64 mkfontdir-1.0.7-10.1.x86_64 mkfontscale-1.1.2-1.1.x86_64 patterns-openSUSE-fonts-20150918-12.1.x86_64 patterns-openSUSE-fonts_opt-20150918-12.1.x86_64 stix-fonts-1.1.0-14.6.noarch xorg-x11-fonts-7.6-31.4.noarch xorg-x11-fonts-core-7.6-31.4.noarch yast2-fonts-3.1.18-6.1.x86_64 -- "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
participants (3)
-
Felix Miata
-
L A Walsh
-
Roger Oberholtzer