Bug 112973 - Some font families getting split in English locale
Summary: Some font families getting split in English locale
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
: 113682 (view as bug list)
Depends on:
Blocks: 35538 Fonts-Name-Combobox Font-List 98596
  Show dependency treegraph
 
Reported: 2017-10-07 11:13 UTC by Timur Davletshin
Modified: 2022-01-08 03:50 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Screenshot of LO font dialog, started in English locale (top) and Russian (bottom) (113.66 KB, image/png)
2017-10-07 11:14 UTC, Timur Davletshin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Davletshin 2017-10-07 11:13:14 UTC
Description:
Selected fonts are getting split if English locale is used.

Steps to Reproduce:
1. Check if your locale is English (LANG=en_US.UTF-8)
2. Install Vollkorn font (just as a example) (http://vollkorn-typeface.com/)
3. Start LibreOffice Writer and check new font

Actual Results:  
Font is split into 'Vollkorn', 'Vollkorn Black' and 'Vollkorn Semibold' families
5.

Expected Results:
New font is expected to be available as one 'Vollkorn' family. Works only with selected fonts (e.g. Arno Pro, Minion Pro, Warnock Pro), but since result heavily depends on locale used I consider it as LO bug.


Reproducible: Always

User Profile Reset: No

Additional Info:
1. Check if your locale is Russian (LANG=ru_RU.UTF-8)
2. Start LibreOffice Writer and check new font
3. New font is available as one family, no split happens.


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 Timur Davletshin 2017-10-07 11:14:52 UTC
Created attachment 136826 [details]
Screenshot of LO font dialog, started in English locale (top) and Russian (bottom)
Comment 2 Buovjaga 2017-11-03 14:33:23 UTC
Reproduced by running
LANG=en_US.UTF-8 libreoffice

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha1+
Build ID: 64024d7c18bd114eb9958cf80eea9129e09923bd
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 3rd 2017

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 3 خالد حسني 2017-11-03 14:49:01 UTC
The behaviour under the English locale is the correct one IMO, since otherwise you wouldn’t have a way to use Vollkorn Black or Warnock Pro Caption etc.
Comment 4 Timur Davletshin 2017-11-03 15:49:39 UTC
(In reply to Khaled Hosny from comment #3)
> The behaviour under the English locale is the correct one IMO, since
> otherwise you wouldn’t have a way to use Vollkorn Black or Warnock Pro
> Caption etc.

I believe it is not. They belong to one family, additional properties are available in Format -> Character -> Style.
Comment 5 خالد حسني 2017-11-04 12:05:48 UTC
(In reply to Timur I. Davletshin from comment #4)
> (In reply to Khaled Hosny from comment #3)
> > The behaviour under the English locale is the correct one IMO, since
> > otherwise you wouldn’t have a way to use Vollkorn Black or Warnock Pro
> > Caption etc.
> 
> I believe it is not. They belong to one family, additional properties are
> available in Format -> Character -> Style.

But you can’t select them from the main UI since only buttons for R/I/B/BI are provided. The way other office suite(s) work is by grouping only the four basic styles and anything else is considered a separate family.
Comment 6 Timur Davletshin 2017-11-04 12:17:27 UTC
(In reply to Khaled Hosny from comment #5)
> (In reply to Timur I. Davletshin from comment #4)
> > (In reply to Khaled Hosny from comment #3)
> > > The behaviour under the English locale is the correct one IMO, since
> > > otherwise you wouldn’t have a way to use Vollkorn Black or Warnock Pro
> > > Caption etc.
> > 
> > I believe it is not. They belong to one family, additional properties are
> > available in Format -> Character -> Style.
> 
> But you can’t select them from the main UI since only buttons for R/I/B/BI
> are provided. The way other office suite(s) work is by grouping only the
> four basic styles and anything else is considered a separate family.

I have little chance to use other office suites last decade, so cannot comment which way is de facto standard these days. But without any doubt compatibility  should not depend on locale used on client's PC. E.g. I received document created in Russian locale and fonts are mess on my English locale PC. IMHO opinion, relying on font family specified in font file is the best approach. Some foundries make fonts available as stylistic variants, others prefer to define separate family name.
Comment 7 Buovjaga 2017-11-13 18:10:30 UTC
*** Bug 113682 has been marked as a duplicate of this bug. ***
Comment 8 Timur Davletshin 2018-02-01 16:02:42 UTC
Still can be reproduced in LO 6.0
Comment 9 QA Administrators 2019-02-02 03:44:32 UTC Comment hidden (obsolete)
Comment 10 Mihkel Tõnnov 2020-01-07 14:12:20 UTC
Still repro with 6.3.4 and also current master, running on Arch Linux.

With LANG=et_EE or en_GB (regardless of the actual UI language in LibO), the various weights of fonts like Fira Sans are grouped into one family (and, in case there are many weights, some of them are rendered inaccessible); with en_US, the weights are listed as separate families (which makes the font list very, very long if one has many multi-weight fonts installed).

In any case, current dependency on system locale breaks document interoperability.
Comment 11 Mihkel Tõnnov 2020-01-07 14:21:24 UTC
I'll try my luck bibisecting this later today/tomorrow.
Comment 12 Mihkel Tõnnov 2020-01-08 22:37:20 UTC
Bibisected first using the sparse Releases repository, which said 4.3.3.1 was the fist bad "commit". So tried with 44max repository, where:
 35dc99d53b0a61823b3731e866dd9da0ab3b9141 is the first bad commit
    commit 9436ae99438ccc24a86aff61aaa9174a9686814f
    Author:     Caolán McNamara <caolanm@redhat.com>
    AuthorDate: Fri Sep 12 10:20:48 2014 +0100
    Commit:     Caolán McNamara <caolanm@redhat.com>
    CommitDate: Fri Sep 12 10:28:21 2014 +0100
    
        Related: fdo#82259 implement mac ttf fontname encoding support
    
        which is why these font's are not appearing under Linux

https://cgit.freedesktop.org/libreoffice/core/commit/?id=9436ae99438ccc24a86aff61aaa9174a9686814f
... which looks like a credible cause indeed (and was backported to 4.3.3 - https://wiki.documentfoundation.org/Releases/4.3.3/RC1).

Adding Caolán to CC.

However I notice that the above results contradict the "Version 3.6.7.2" information currently in the ticket, so I tested that version specifically using both the Releases bibisect repo and old appimages - and I don't see this behaviour there:
3.6.7.2 is fine (no difference between en_US and others).
4.3.0.4 appimage is fine as well, but
4.3.7.2 appimage is broken (different font listing between en_US and others).
This matches with the bibisect result, too.

One thing to note is that I had to run the bibisect using SAL_USE_VCLPLUGIN=gen because otherwise LibO wouldn't start. I don't know if different VCL plugin could affect this?
Comment 13 QA Administrators 2022-01-08 03:50:37 UTC
Dear Timur Davletshin,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug