- 3,708,778 Users
- 2,241,125 Discussions
- 7,840,609 Comments
Forum Stats
Discussions
Categories
- 22 Industry Applications
- 3.2K Intelligent Advisor
- 4 Insurance
- 746 On-Premises Infrastructure
- 251 Analytics Software
- 21 Application Development Software
- 1.7K Cloud Platform
- 700.4K Database Software
- 17.4K Enterprise Manager
- 4 Hardware
- 107 Infrastructure Software
- 70 Integration
- 45 Security Software
i can't install new font in ol 8

Answers
Why install GUI fonts on a non-GUI server distro?
Runlevel 5 on a server is idiotic in my view.
Maybe he needs to create PDF's with fonts embedded into the PDF? We had lot's of those situations where some Java-program generates PDF's but render those PDF's really wrong because of missing fonts.
But you can add them with these steps:
That worked for my under 7 and earlier I don't see why it shouldn't work in 8 (or I missed something really big).
hi andreas
i tried fc-cache like attached screenshots but i can't find the new font in terminal fonts "i tried to restart terminal and pc "
As I said, runlevel5 on a server is pure silliness. Waste of resources. Ignorant. Unwarranted.
what is runlevel5 ?
is there any other way you suggest?
Runlevel 5 on RHEL-based Linux is multi-user (runlevel 3), with a windows display manager (X11).
https://en.wikipedia.org/wiki/Runlevel
Use runlevel 3 on servers. An active display manager adds more memory hungry processes. Install openbox (https://en.wikipedia.org/wiki/Openbox) and vncserver (https://www.tightvnc.com/vncserver.1.php) on the server - for starting a VNC openbox virtual display server for running the odd GUI-based process, like the Oracle Universal Installer for Grid Infrastructure and RDBMS installation. Destroy VNC server when done.
Use runlevel 5 on desktop distros like Kubuntu - Ubuntu with KDE Plasma.
A KDE/Gnome GUI on a server is just plain silliness.
Hi.
Try run fc-cache -f -v and read what say this program for required directory font.
Regards,
Nik
hi NK ,
[[email protected] font-user1]# fc-cache -f -v
/usr/share/fonts: caching, new cache contents: 0 fonts, 33 dirs
/usr/share/fonts/abattis-cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/font-user1: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/font-user1/pacifico: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/gnu-free: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/google-droid: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/google-noto: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/google-noto-cjk: caching, new cache contents: 73 fonts, 0 dirs
/usr/share/fonts/google-noto-emoji: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/jomolhari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/julietaula-montserrat: caching, new cache contents: 72 fonts, 0 dirs
/usr/share/fonts/khmeros: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/liberation: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/liberation-mono: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/liberation-sans: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/liberation-serif: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-gurmukhi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-odia: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/paktype-naskh-basic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/paratype-pt-sans: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/sil-abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/sil-nuosu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/sil-padauk: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/smc: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/stix: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/thai-scalable: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/urw-base35: caching, new cache contents: 69 fonts, 0 dirs
/usr/share/X11/fonts/Type1: skipping, no such directory
/usr/share/X11/fonts/TTF: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/root/.local/share/fonts: caching, new cache contents: 1 fonts, 0 dirs
/root/.fonts: skipping, no such directory
/usr/share/fonts/abattis-cantarell: skipping, looped directory detected
/usr/share/fonts/dejavu: skipping, looped directory detected
/usr/share/fonts/font-user1: skipping, looped directory detected
/usr/share/fonts/gnu-free: skipping, looped directory detected
/usr/share/fonts/google-droid: skipping, looped directory detected
/usr/share/fonts/google-noto: skipping, looped directory detected
/usr/share/fonts/google-noto-cjk: skipping, looped directory detected
/usr/share/fonts/google-noto-emoji: skipping, looped directory detected
/usr/share/fonts/jomolhari: skipping, looped directory detected
/usr/share/fonts/julietaula-montserrat: skipping, looped directory detected
/usr/share/fonts/khmeros: skipping, looped directory detected
/usr/share/fonts/liberation: skipping, looped directory detected
/usr/share/fonts/liberation-mono: skipping, looped directory detected
/usr/share/fonts/liberation-sans: skipping, looped directory detected
/usr/share/fonts/liberation-serif: skipping, looped directory detected
/usr/share/fonts/lohit-assamese: skipping, looped directory detected
/usr/share/fonts/lohit-bengali: skipping, looped directory detected
/usr/share/fonts/lohit-devanagari: skipping, looped directory detected
/usr/share/fonts/lohit-gujarati: skipping, looped directory detected
/usr/share/fonts/lohit-gurmukhi: skipping, looped directory detected
/usr/share/fonts/lohit-kannada: skipping, looped directory detected
/usr/share/fonts/lohit-odia: skipping, looped directory detected
/usr/share/fonts/lohit-tamil: skipping, looped directory detected
/usr/share/fonts/lohit-telugu: skipping, looped directory detected
/usr/share/fonts/paktype-naskh-basic: skipping, looped directory detected
/usr/share/fonts/paratype-pt-sans: skipping, looped directory detected
/usr/share/fonts/sil-abyssinica: skipping, looped directory detected
/usr/share/fonts/sil-nuosu: skipping, looped directory detected
/usr/share/fonts/sil-padauk: skipping, looped directory detected
/usr/share/fonts/smc: skipping, looped directory detected
/usr/share/fonts/stix: skipping, looped directory detected
/usr/share/fonts/thai-scalable: skipping, looped directory detected
/usr/share/fonts/urw-base35: skipping, looped directory detected
/usr/share/fonts/font-user1/pacifico: skipping, looped directory detected
/usr/lib/fontconfig/cache: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
/usr/bin/fc-cache-64: succeeded
still can't find any new font , is there any problem ?
Hi.
According previous screenshot You put new fonts at directory:
/usr/share/fonts/font-user1/pacifico ,
but fc-cache ingnore this dir:
/usr/share/fonts/font-user1: skipping, looped directory detected
I do not know what exactly You do.
Possible fonts dirs already have file (directory) with name pacifico or other problems with dir /usr/share/fonts/font-user1
Show results for commands:
find /usr/share/fonts | grep -i pacifico
find /usr/share/fonts/font-user1 -ls
Regards,
Nik
hi Nik, how are u ?
[[email protected] ~]# find /usr/share/fonts | grep -i pacifico
/usr/share/fonts/font-user1/pacifico
/usr/share/fonts/font-user1/pacifico/Pacifico.ttf
/usr/share/fonts/font-user1/pacifico/.uuid
[[email protected] ~]# find /usr/share/fonts/font-user1 -ls
330784 0 drwxr-xr-x 3 root root 35 Sep 16 17:45 /usr/share/fonts/font-user1
134398835 0 drwxr-xr-x 2 root root 39 Sep 16 17:46 /usr/share/fonts/font-user1/pacifico
134398837 44 -rw-r--r-- 1 root root 43632 Sep 16 17:46 /usr/share/fonts/font-user1/pacifico/Pacifico.ttf
134398842 4 -rw-r--r-- 1 root root 36 Sep 16 17:49 /usr/share/fonts/font-user1/pacifico/.uuid
1934318 4 -rw-r--r-- 1 root root 36 Sep 16 17:49 /usr/share/fonts/font-user1/.uuid
[[email protected] ~]#
You can check the installed (and accessible fonts) by running the command fc-list. fc-cache purely updates the cache of installed fonts, fc-list sums them up.
And the comment about circular directories is important too. Try creating a directory under /usr/share/fonts directly, so no symlinks, and then run fc-cache again, followed by fc-list.
@andreas.dijkman you mean as a root
cd /usr/share/fonts
rm -rf *
and then copy new fonts to /usr/share/fonts
and then fc-cache again??
Sorry, only the font-user1-directory. If you delete EVERYTHING under /usr/share/fonts, you also delete perfectly fine fonts.
As root:
mkdir /usr/share/fonts/pacifico
cp Pacifico.ttf /usr/share/fonts/pacifico
chmod 755 /usr/share/fonts/pacifico
chmod 644 /usr/share/fonts/pacifico
restorecon -FR /usr/share/fonts
fc-cache -r
fc-list
Working perfectly here:
[[email protected] ~]# mkdir /usr/share/fonts/pacifico
[[email protected] ~]# cp Pacifico.ttf /usr/share/fonts/pacifico/
[[email protected] ~]# restorecon -FR /usr/share/fonts/
[[email protected] ~]# chmod 755 /usr/share/fonts/pacifico
[[email protected] ~]# chmod 644 /usr/share/fonts/pacifico
[[email protected] ~]# fc-cache
[[email protected] ~]# fc-list
Fontconfig warning: ignoring UTF-8: not a valid region tag
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Bold.ttf: Comfortaa:style=Bold
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Light.ttf: Comfortaa,Comfortaa Light:style=Light,Regular
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Regular.ttf: Comfortaa:style=Regular
/usr/share/fonts/pacifico/Pacifico.ttf: Pacifico:style=Regular
[[email protected] ~]# exit
[[email protected] ~]$ fc-list
Fontconfig warning: ignoring UTF-8: not a valid region tag
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Bold.ttf: Comfortaa:style=Bold
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Light.ttf: Comfortaa,Comfortaa Light:style=Light,Regular
/usr/share/fonts/aajohan-comfortaa/Comfortaa-Regular.ttf: Comfortaa:style=Regular
/usr/share/fonts/pacifico/Pacifico.ttf: Pacifico:style=Regular
[[email protected] ~]$