Bug 154571 - Font with localized names improperly loaded or displayed
Summary: Font with localized names improperly loaded or displayed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-List Languages
  Show dependency treegraph
 
Reported: 2023-04-02 18:30 UTC by Maxim Iorsh
Modified: 2023-04-19 22:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Miriam CLM font (43.81 KB, application/vnd.oasis.opendocument.formula-template)
2023-04-02 18:30 UTC, Maxim Iorsh
Details
English UI - font name in English (57.13 KB, image/png)
2023-04-02 18:32 UTC, Maxim Iorsh
Details
Miriam font info, showing localized names (101.06 KB, image/png)
2023-04-02 18:32 UTC, Maxim Iorsh
Details
document which uses "Miriam CLM" font (9.31 KB, application/vnd.oasis.opendocument.text)
2023-04-02 18:33 UTC, Maxim Iorsh
Details
Font listed with localized Hebrew name (99.88 KB, image/png)
2023-04-02 18:35 UTC, Maxim Iorsh
Details
Doument font is listed by English name and marked slanted, as if not present (24.76 KB, image/png)
2023-04-02 18:36 UTC, Maxim Iorsh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Iorsh 2023-04-02 18:30:08 UTC
Created attachment 186413 [details]
Miriam CLM font

When a document with localized font is transferred across LO with different UI language, fonts are not selected correctly.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9c7d3ce813c761b116232bc291e2737c59d383da
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Prerequisite:
Install font "Miriam CLM" with localized names (attached, see also screenshot)

Steps to reproduce:
1. Open LO Writer with English UI
2. Observe "Miriam CLM" font is present
3. Create and save document which uses "Miriam CLM" font (attached as English_UI_test.odt)
4. Close LO Writer
5. Open LO Writer with Hebrew UI, using flag --language=he
6. Observe the "מרים" font is present - same font with Hebrew name (see screenshot)
7. Load the document English_UI_test.odt
8. Observe that the font used in the document is displayed in UI as slanted "Miriam CLM", as if it were not found, and not with its Hebrew hame.
Comment 1 Maxim Iorsh 2023-04-02 18:32:05 UTC
Created attachment 186414 [details]
English UI - font name in English

Screenshot of English UI with font name in English
Comment 2 Maxim Iorsh 2023-04-02 18:32:38 UTC
Created attachment 186415 [details]
Miriam font info, showing localized names
Comment 3 Maxim Iorsh 2023-04-02 18:33:16 UTC
Created attachment 186416 [details]
document which uses "Miriam CLM" font
Comment 4 Maxim Iorsh 2023-04-02 18:35:08 UTC
Created attachment 186417 [details]
Font listed with localized Hebrew name
Comment 5 Maxim Iorsh 2023-04-02 18:36:56 UTC
Created attachment 186418 [details]
Doument font is listed by English name and marked slanted, as if not present
Comment 6 Maxim Iorsh 2023-04-02 18:38:06 UTC
This bug is a follow-up of recently fixed https://bugs.documentfoundation.org/show_bug.cgi?id=151722
Comment 7 Stéphane Guillou (stragu) 2023-04-19 22:43:16 UTC
Confirmed as described with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 61b41646c5a93ca24f2c9f143cdb0da2c9258989
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: he-IL
Calc: threaded

Caolán, CCing you in following your work on bug 151722, in case you're interested.