Article 5510E Can't use Century Schoolbook L font on Ubuntu 20.04 even though its .pfb file is shown by fc-list

Can't use Century Schoolbook L font on Ubuntu 20.04 even though its .pfb file is shown by fc-list

by
gonthcarovd
from LinuxQuestions.org on (#5510E)
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.pfbI have tried rebuilding the cache multiple times to no avail with:

Code:% fc-cache -v -rand

Code:% sudo fc-cache -v -rI 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?
  • How do I proceed?
latest?d=yIl2AUoC8zA latest?i=oOuSH33MG8A:O6cIbmVkP64:F7zBnMy latest?i=oOuSH33MG8A:O6cIbmVkP64:V_sGLiP latest?d=qj6IDK7rITs latest?i=oOuSH33MG8A:O6cIbmVkP64:gIN9vFwoOuSH33MG8A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments