Page 1 of 1

fonts LibreOffice (Solved - sort of)

Posted: Sat Apr 27, 2019 10:08 am
by old_guy
I'm confused with how fonts are utilized in MX or mainly LibreOffice.

Main example:
Century Schoolbook
shows up in Settings - Appearance - Fonts
but not in LibreOffice.

I ran:
fc-list | grep School
/usr/share/fonts/truetype/uralic/schoub__.ttf: Schoolbook Uralic:style=Bold
/usr/share/fonts/type1/gsfonts/c059013l.pfb: Century Schoolbook L:style=Roman
/usr/share/fonts/truetype/uralic/schou___.ttf: Schoolbook Uralic:style=Regular
/usr/share/fonts/truetype/uralic/schoui__.ttf: Schoolbook Uralic:style=Italic
/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

LibreOffice shows:
Schoolbook Uralic, but not Century Schoolbook L

How do I get Century Schoolbook L and other fonts that are in /usr/share/fonts to show up in LibreOffice?

Earl

Re: fonts LibreOffice

Posted: Sat Apr 27, 2019 11:24 am
by old_guy
Bluesguy
Thanks for the reply, but didn't work.
Earl

Update
I started comparing between what shows in:
Settings - Appearance - Fonts
and
LibreOffice

Several others were missing in LibreOffice - they were all in
/usr/share/fonts/type1/gsfonts/

Re: fonts LibreOffice

Posted: Sat Apr 27, 2019 2:03 pm
by old_guy
Found online:
LibreOffice 5.3, which is dropping support for Type 1 fonts.

So Solved sort of.

Re: fonts LibreOffice (Solved - sort of)

Posted: Sat Apr 27, 2019 5:32 pm
by cpoakes
Convert the PFB files to OTF. Install fontforge and use the following script:

Code: Select all

#!/usr/bin/fontforge
Open($1);
Reencode("unicode");
Generate($fontname+".otf");
Quit(0);
Script credit: jeromejaglale.com (more specific directions at site)

The OTF format was designed in collaboration with Adobe to directly map type1 postscript fonts, so this is an accurate conversion without approximations.