Bug 107022 - LO Non-Standard Font File Names Cause Problems
Summary: LO Non-Standard Font File Names Cause Problems
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
5.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-07 20:34 UTC by LibreTraining
Modified: 2017-04-07 23:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LibreTraining 2017-04-07 20:34:35 UTC
Description:

LibreOffice font file names are not the same as the original source.
Underlines replace the original hyphen in the original file names.
This causes duplicate fonts to be installed if the user or any other application has installed these very commonly used fonts.

On Windows this has the effect of disabling those fonts.
I would expect this would also cause issues on Linux and Mac. 

I just installed the LO 5.3.2.2 update – and my fonts are messed-up again.
Caladea, DejaVu, Liberation Sans, etc., etc., - all disabled.
They are listed, but appear as what looks like Courier.

So I went looking to see why the fonts are broken, again.
I found in the Fonts folder there were multiple duplicates.

For example:
Caladea_Bold.ttf
Caladea_BoldItalic.ttf
Caladea_Italic.ttf
Caladea_Regular.ttf
Caladea-Bold.ttf
Caladea-BoldItalic.ttf
Caladea-Italic.ttf
Caladea-Regular.ttf

Caladea from Font Library – uses hyphen
Caladea from RPM Source - uses hyphen
Caladea from Debian website - uses hyphen

Same problem with: 
- Caladea
- Carlito
- DejaVu
- EmojiOne Color
- Liberation Mono
- Liberation Sans
- Liberation Serif
- Open Sans
- PT Serif
- Source Code Pro

The originals all use hyphens in the file name.
LibreOffice for some reason changes these to underlines.

So if a user has installed these fonts and then installs LibreOffice, 
they are going to have duplicate font name problems.

Or if a user has unexplained font issues after previously installing LibreOffice, and they clean-out the font files, and they clean-out all the registry errors, and then they reinstall all the fonts from the original sources to get rid of some unexplained font issues, get it working properly again, AND THEN install a LibreOffice update – and then it is all screwed-up again (me).

This could also explain some of the unexplained font bugs.
I updated LO to test the DejaVu fonts with the latest version.
To see if Bug 87288 was still an issue, or had been fixed.
Instead the update completely disabled all the DejaVu fonts.
So I have to fix it again.

Many other applications install these fonts.
I am sure I am not the only one with these issues.

LibreOffice should use the original font file names.


Steps to Reproduce:
1. Install these common open source fonts
2. Or install an application which installs these common open source fonts
3. Update LibreOffice
4. Try to figure-out why your fonts are disabled again

Actual Results:  
LibreOffice installs the same fonts with different file names which completely confuses the operating system which then simply disables the fonts.

Expected Results:
Use the same file names as the rest of the planet so installing LibreOffice does not mess-up the fonts.



Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 V Stuart Foote 2017-04-07 21:32:33 UTC
Sorry, can not reproduce.

On Windows 8.1 Ent 64-bit en-US with
Version: 5.3.2.2 (x64)
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
CPU Threads: 8; OS Version: Windows 6.29; UI Render: GL; Layout Engine: new; 
Locale: en-US (en_US); Calc: group

The fonts are all named with the 'hyphen', and are listed as noted in the make files for source [1]

=-ref-=
[1] http://opengrok.libreoffice.org/xref/core/external/more_fonts/
Comment 2 LibreTraining 2017-04-07 22:28:50 UTC
I just extracted: LibreOffice_5.3.2.2_Win_x64.msi

Font file names ... 

Caladea_Bold.ttf
Caladea_BoldItalic.ttf
Caladea_Italic.ttf
Caladea_Regular.ttf
Carlito_Bold.ttf
Carlito_BoldItalic.ttf
Carlito_Italic.ttf
Carlito_Regular.ttf
DejaVuMathTeXGyre.ttf
DejaVuSans.ttf
DejaVuSansCondensed.ttf
DejaVuSansCondensed_Bold.ttf
DejaVuSansCondensed_BoldOblique.ttf
DejaVuSansCondensed_Oblique.ttf
DejaVuSansMono.ttf
DejaVuSansMono_Bold.ttf
DejaVuSansMono_BoldOblique.ttf
DejaVuSansMono_Oblique.ttf
DejaVuSans_Bold.ttf
DejaVuSans_BoldOblique.ttf
DejaVuSans_ExtraLight.ttf
DejaVuSans_Oblique.ttf
DejaVuSerif.ttf
DejaVuSerifCondensed.ttf
DejaVuSerifCondensed_Bold.ttf
DejaVuSerifCondensed_BoldItalic.ttf
DejaVuSerifCondensed_Italic.ttf
DejaVuSerif_Bold.ttf
DejaVuSerif_BoldItalic.ttf
DejaVuSerif_Italic.ttf
EmojiOneColor_SVGinOT.ttf
GenBasB.ttf
GenBasBI.ttf
GenBasI.ttf
GenBasR.ttf
GenBkBasB.ttf
GenBkBasBI.ttf
GenBkBasI.ttf
GenBkBasR.ttf
LiberationMono_Bold.ttf
LiberationMono_BoldItalic.ttf
LiberationMono_Italic.ttf
LiberationMono_Regular.ttf
LiberationSansNarrow_Bold.ttf
LiberationSansNarrow_BoldItalic.ttf
LiberationSansNarrow_Italic.ttf
LiberationSansNarrow_Regular.ttf
LiberationSans_Bold.ttf
LiberationSans_BoldItalic.ttf
LiberationSans_Italic.ttf
LiberationSans_Regular.ttf
LiberationSerif_Bold.ttf
LiberationSerif_BoldItalic.ttf
LiberationSerif_Italic.ttf
LiberationSerif_Regular.ttf
LinBiolinum_RB_G.ttf
LinBiolinum_RI_G.ttf
LinBiolinum_R_G.ttf
LinLibertine_DR_G.ttf
LinLibertine_RBI_G.ttf
LinLibertine_RB_G.ttf
LinLibertine_RI_G.ttf
LinLibertine_RZI_G.ttf
LinLibertine_RZ_G.ttf
LinLibertine_R_G.ttf
OpenSans_Bold.ttf
OpenSans_BoldItalic.ttf
OpenSans_Italic.ttf
OpenSans_Regular.ttf
opens___.ttf
PT_Serif_Web_Bold.ttf
PT_Serif_Web_BoldItalic.ttf
PT_Serif_Web_Italic.ttf
PT_Serif_Web_Regular.ttf
SourceCodePro_Black.ttf
SourceCodePro_BlackIt.ttf
SourceCodePro_Bold.ttf
SourceCodePro_BoldIt.ttf
SourceCodePro_ExtraLight.ttf
SourceCodePro_ExtraLightIt.ttf
SourceCodePro_It.ttf
SourceCodePro_Light.ttf
SourceCodePro_LightIt.ttf
SourceCodePro_Medium.ttf
SourceCodePro_MediumIt.ttf
SourceCodePro_Regular.ttf
SourceCodePro_Semibold.ttf
SourceCodePro_SemiboldIt.ttf
SourceSansPro_Black.ttf
SourceSansPro_BlackIt.ttf
SourceSansPro_Bold.ttf
SourceSansPro_BoldIt.ttf
SourceSansPro_ExtraLight.ttf
SourceSansPro_ExtraLightIt.ttf
SourceSansPro_It.ttf
SourceSansPro_Light.ttf
SourceSansPro_LightIt.ttf
SourceSansPro_Regular.ttf
SourceSansPro_Semibold.ttf
SourceSansPro_SemiboldIt.ttf


Same as what I found in v5.3.0.3.
Comment 3 LibreTraining 2017-04-07 22:37:35 UTC
That is the 5.3.2 distribution file which I have renamed to show the the full version number.
Comment 4 V Stuart Foote 2017-04-07 23:05:37 UTC
(In reply to LibreTraining from comment #3)
> That is the 5.3.2 distribution file which I have renamed to show the the
> full version number.

Yes correct, those are the data files--but not the font name they are registered into the OS with when actually installed.
Comment 5 LibreTraining 2017-04-07 23:36:55 UTC
The font names registered are not the problem.
The fact that 2 different font files register the same font name is the problem.

BUT, I think I have determined the problem (my problem).

I just deleted all the relevant font files and then did a Repair install.
The re-installed font files have the correct file names.
So I guess LO is renaming the font files during the installation.

What happened ...
I had extracted the LO 5.3.0.3 font files when I started working on 
my LibreOffice Fonts Guide.
So then when I had the previous font issues and deleted everything, 
I simply copied those distribution files into my font directory.
Everything worked again.
But then when LO was updated I ended-up with two files for each font.
One with underline, and one with hyphen.

Now I do not know why the font files are named differently in the distribution,
but that is where the confusion arose. Why not use the real names?

So I am closing this as resolved/notabug (because "brainfart" is not an option).