Hello,
I'm running Ubuntu 20.04 as a VM on a MacOS host.
I require the Century Schoolbook L font (and likely others in the future). I checked that this font is present under the form of a .pfb file on my system:
Code:
$ fc-list | grep Century
/usr/share/fonts/type1/gsfonts/c059013l.pfb: Century Schoolbook L:style=Roman
/usr/share/fonts/type1/gsfonts/c059033l.pfb: Century Schoolbook L:style=Italic
/usr/share/fonts/type1/gsfonts/c059016l.pfb: Century Schoolbook L:style=Bold
/usr/share/fonts/type1/gsfonts/c059036l.pfb: Century Schoolbook L:style=Bold Italic
In addition the /usr/share/fonts/type1/gsfonts/ folder contains a .afm and a .pfm file for each .pfb file.
However, there is no match for this font in the font cache:
Code:
$ fc-match Century
DejaVuSans.ttf: "DejaVu Sans" "Book"
Here are the permissions of one of these files:
Code:
$ ls -l /usr/share/fonts/type1/gsfonts/c059013l.pfb
-rw-r--r-- 1 root root 106309 Okt 31 2017 /usr/share/fonts/type1/gsfonts/c059013l.pfb
I have tried rebuilding the cache multiple times to no avail with:
and
Code:
% sudo fc-cache -v -r
I have read that this might be due to a permission issue. Therefore I tried copying the /usr/share/fonts folder to $HOME/.local/share/fonts and rebuilding the cache, with no success.
I did have success with installing Microsoft fonts by copying the relevant .ttf and .TTF files into /usr/share/fonts and rebuilding the cache with the above command.
Code:
$ ls msfonts
AndaleMo.TTF AriBlk.TTF couri.ttf Georgiaz.TTF Times.TTF Verdanab.TTF
Arialbd.TTF Comicbd.TTF cour.ttf Impact.TTF Trebucbd.TTF Verdanai.TTF
Arialbi.TTF Comic.TTF Georgiab.TTF Timesbd.TTF Trebucbi.TTF Verdana.TTF
Ariali.TTF courbd.ttf Georgiai.TTF Timesbi.TTF Trebucit.TTF Verdanaz.TTF
Arial.TTF courbi.ttf Georgia.TTF Timesi.TTF Trebuc.TTF Webdings.TTF
For Microsoft fonts the cache can match the correct font for Arial:
Code:
fc-match Arial
Arial.TTF: "Arial" "Regular"
This makes me wonder:
- Can I only install fonts using .ttf or .TTF files?
- If .pfb files (postscript fonts?) serve no purpose, why are they shown by fc-list?