Bug 150213 - Installation wizard overwrites fonts with earlier versions
Summary: Installation wizard overwrites fonts with earlier versions
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) rc
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2022-08-01 05:50 UTC by Kim
Modified: 2022-08-01 09:33 UTC (History)
0 users

See Also:
Crash report or crash signature:

Attachments installation log (2.36 MB, application/x-zip-compressed)
2022-08-01 07:17 UTC, Mike Kaganski

Note You need to log in before you can comment on or make changes to this bug.
Description Kim 2022-08-01 05:50:41 UTC
The LO installation wizard overwrites the current version of the Liberation fonts, v2.1.5, with the earlier version 2.1.4.

Steps to Reproduce:
1. Install the current version of the Liberation fonts, obtainable here https://github.com/liberationfonts/liberation-fonts/releases/tag/2.1.5
2. Run the LO installation wizard to install a new version
3. Check the installed version of the Liberation fonts.

Actual Results:
The current version of liberation-fonts has been overwritten with version 2.1.4.

Expected Results:
Existing font versions should not be overwritten with earlier versions.

Reproducible: Always

User Profile Reset: No

Additional Info:
Version (x64) / LibreOffice Community
Build: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
Environment: CPU threads: 8; OS: Windows 10.0 Build 19044
User Interface: UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Misc: Calc: threaded
Comment 1 Mike Kaganski 2022-08-01 06:28:22 UTC
(In reply to Kim from comment #0)
> 1. Install the current version of the Liberation fonts, obtainable here
> https://github.com/liberationfonts/liberation-fonts/releases/tag/2.1.5

How exactly do you install these fonts? There are multiple ways to do that, including per-user/system-wide installation choice on current Windows versions.

My suspicion is that you install the fonts per user, and LibreOffice indeed installs system fonts, and Windows ignores user fonts when system fonts are available, or some such. Note that in the resolution of bug 39743, we made sure to provide the font versions in the installer, so it must be something external to LibreOffice here (either the system installer somehow ignores the font versions - which would be NOTOURBUG; or the mentioned user-vs-system installation of fonts - which would be a user error or "system-specific behavior").

Also if possible, please provide full installation log (when you have the newer fonts prior to installation), as described at https://wiki.documentfoundation.org/Faq/General/General_Installation_Issues_(Windows)#Create_an_installation_log
Comment 2 Kim 2022-08-01 06:37:20 UTC
The fonts are installed for all users.
Comment 3 Kim 2022-08-01 06:41:19 UTC
The fonts are installed for all users by selecting the files and selecting ‘Install for all users’ from the context menu. Sorry, I see no way of providing an installation log.
Comment 4 Mike Kaganski 2022-08-01 07:17:29 UTC
Created attachment 181524 [details] installation log

I repro the problem.

However, as suspected, this is not our bug: Windows Installer does not understand the *pre-existing* font version number.

The attached log has this kind of entries:

> MSI (s) (4C:7C) [10:05:23:177]: Executing op: FileCopy(SourceName=LIBERA~1.TTF|LiberationMono-Bold.ttf,SourceCabKey=LiberationMono_Bold.ttf,DestName=LiberationMono-Bold.ttf,Attributes=16384,FileSize=307856,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=,,InstallMode=58982400,,,,,,,)
> MSI (s) (4C:7C) [10:05:23:178]: File: C:\WINDOWS\Fonts\LiberationMono-Bold.ttf;	Overwrite;	Won't patch;	New file versioned - existing file unversioned

We provide every possible bit of information in the installer. But the pre-installed fonts are reported *by system* as unversioned - either because Windows Installer is dumb enough to not be able to read font versions, or maybe because Windows font installation procedure does not register that version information somewhere where Windows Installer expects it.

I don't think we can do anything here.
Comment 5 Kim 2022-08-01 09:27:46 UTC
Could the version of the Liberation fonts installed by the installation wizard be updated to the current one, 2.1.5?
Comment 6 Mike Kaganski 2022-08-01 09:33:00 UTC
(In reply to Kim from comment #5)

This is a separate, valid request. Please file it as a separate issue, to keep this one specific to the installer issue, which can be referenced.