[solved] Font problem in LibreOffice

General support questions
Post Reply
mechanicus
Posts: 15
Joined: 2012/07/26 15:02:29

[solved] Font problem in LibreOffice

Post by mechanicus » 2018/07/06 08:26:53

I've installed fonts, but the are not available in LibreOffice.

Code: Select all

$ fc-list |grep Barbedor
/usr/share/fonts/local/d-barbx.pfb: Barbedor\-Caps\-Shadow:style=Regular
/usr/share/fonts/local/barbi50.pfb: Barbedor\-Osf:style=Italic
/usr/share/fonts/local/barbbi.pfb: Barbedor:style=BoldItalic
/usr/share/fonts/local/barbx.pfb: Barbedor\-Caps:style=Regular
/usr/share/fonts/local/barbb.pfb: Barbedor:style=Bold
/usr/share/fonts/local/barbbi50.pfb: Barbedor\-Osf:style=BoldItalic
/usr/share/fonts/local/d-barbi.pfb: BarbedorShadow:style=Italic
/usr/share/fonts/local/d-barbb.pfb: BarbedorShadow:style=Bold
/usr/share/fonts/local/d-barbbx.pfb: Barbedor\-Caps\-Shadow:style=Bold
/usr/share/fonts/local/d-barb.pfb: BarbedorShadow:style=Regular
/usr/share/fonts/local/barb.pfb: Barbedor:style=Regular
But they don't appears in LibreOffice:
Image
Last edited by mechanicus on 2018/07/08 06:54:10, edited 1 time in total.

desertcat
Posts: 464
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Font problem in LibreOffice

Post by desertcat » 2018/07/06 09:20:44

mechanicus wrote:
2018/07/06 08:26:53
I've installed fonts, but the are not available in LibreOffice.

Code: Select all

$ fc-list |grep Barbedor
/usr/share/fonts/local/d-barbx.pfb: Barbedor\-Caps\-Shadow:style=Regular
/usr/share/fonts/local/barbi50.pfb: Barbedor\-Osf:style=Italic
/usr/share/fonts/local/barbbi.pfb: Barbedor:style=BoldItalic
/usr/share/fonts/local/barbx.pfb: Barbedor\-Caps:style=Regular
/usr/share/fonts/local/barbb.pfb: Barbedor:style=Bold
/usr/share/fonts/local/barbbi50.pfb: Barbedor\-Osf:style=BoldItalic
/usr/share/fonts/local/d-barbi.pfb: BarbedorShadow:style=Italic
/usr/share/fonts/local/d-barbb.pfb: BarbedorShadow:style=Bold
/usr/share/fonts/local/d-barbbx.pfb: Barbedor\-Caps\-Shadow:style=Bold
/usr/share/fonts/local/d-barb.pfb: BarbedorShadow:style=Regular
/usr/share/fonts/local/barb.pfb: Barbedor:style=Regular
But they don't appears in LibreOffice:
Image
Hummmmm I think you are doing something wrong: i downloaded a whole slew of fonts and they all show up. I am not sure WHY you are using /usr/share/fonts/local. Here is the way I did it:

1. Download the font you wish. more likely than not it will be a .zip file. Example: midnight-bangkok.zip
2. Change the ownership of the file so that it is owned by root
3. Unzip the file.
License Request.txt
Midnight-Bangkok.png
Midnight Bangkok.ttf
4. Make a directory with the name of the font in /usr/share/fonts
example: /usr/share/fonts/midnight-bangkok
NOTICE: tjere is NO /local. that makes the font available system wide.
5. Copy all the unzipped files into the new directory you just created in /usr/share/fonts/midnight-bangkok
6. Reboot the machine to make sure the files are loaded.

If you NOW check Libre Office you will indeed find the new font as now being available.

mechanicus
Posts: 15
Joined: 2012/07/26 15:02:29

Re: Font problem in LibreOffice

Post by mechanicus » 2018/07/06 11:54:09

Thanks for the reply. That are custom fonts from a business cdrom. Font installation is right, because Linux looks for all files and subfolders in /usr/share/fonts. Therefore it recognize the Barbedor fonts in /usr/share/fonts/local, as you can see in the output of fc-list above.

If I put any ttf file there and run fc-cache, the new font appears system wide and also in LibreOffice, but new postscript fonts seems to appear only in the Linux system and not in LibreOffice. That's strange.

mechanicus
Posts: 15
Joined: 2012/07/26 15:02:29

Re: Font problem in LibreOffice

Post by mechanicus » 2018/07/06 12:56:00

From the release Notes of LibreOffice 5.3:
(...)
Support for Type 1 fonts has been removed (Khaled Hosny)
(...)
:shock:

desertcat
Posts: 464
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Font problem in LibreOffice

Post by desertcat » 2018/07/08 06:01:57

Hummmmm. Type 1 fonts may or may not be supported. IF they are .otf files they *should* be found. Open the various fonts and see what their extensions are. See if there are any extensions other than .pfb. Under /usr/share/fonts then look under /default. Under /usr/share/fonts/default you will find a subdirectory called /Type1. The .pfb extension seems to be a Windows only extension, which maybe be why Libre Office no longer supports it, but .otf does seem to be supported.

A couple of things you could try doing: Make a directory called /usr/share/fonts/default/Type1/Barbedor then copy all those fonts from that CD into that directory and see if you can trick it into finding it.

An alternate idea, which might be easier, is to go online and find the the Barbedor font and see if you can find it as either a .ttf or .otf file. I would again get rid of the /usr/share/fonts/local directory and put the font under its own directory name under /usr/share/fonts ie /usr/share/fonts/Barbedor. It can't hurt and is worth a try. Making the font available system wide may make a huge difference. It is very important to make sure the files are owned by root, not by [usr_ID]. I just went in search of the Barbedor font and there are several places where you can download it for FREE. With luck they are either .ttf or .otf files and that will solve your problem. Indeed you can probably take your CD and look to see what fonts are on it and simply download the same fonts from online sources.

Hope this helps.

desertcat
Posts: 464
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Font problem in LibreOffice

Post by desertcat » 2018/07/08 06:36:51

As a quick follow-up I just downloaded Barbedor Bold and added it to my font collection -- It *is* available as a .ttf font so you can simply replace those cdrom files with FREE available .ttf files. I simply created a directory called /usr/share/fonts/Barbedor . All the Barbedor .ttf files will simply be copied to this one directory.

Hope this helps.

mechanicus
Posts: 15
Joined: 2012/07/26 15:02:29

Re: Font problem in LibreOffice

Post by mechanicus » 2018/07/08 06:52:04

The fonts are commercial fonts and in business action since 1996. Of course, I can they transform to otf-fonts, but this could be lossy, but I'll test this.
The name of the subdirectory in /usr/share/fonts is nonerelevant, the fonts there are recognized by the system.
Thank you very much for your effort.

Post Reply