Bug 109059 - LibreOffice can't render a font whose name includes a comma, unexpected fallback is used
Summary: LibreOffice can't render a font whose name includes a comma, unexpected fallb...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.2.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Rendering Font-Fallback
  Show dependency treegraph
 
Reported: 2017-07-11 08:24 UTC by Xavier R
Modified: 2024-01-15 09:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File where the bug was detected (24.16 KB, application/vnd.oasis.opendocument.text)
2017-07-11 08:36 UTC, Xavier R
Details
PDF Export of the original ODT document from LO 5.2.4.2 x64 (77.66 KB, application/pdf)
2017-07-11 08:37 UTC, Xavier R
Details
DOCX Export of the original ODT document from LO 5.2.4.2 x64 (9.16 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-07-11 08:40 UTC, Xavier R
Details
PDF Export of the DOCX document from Ms Word 2010 (132.63 KB, application/pdf)
2017-07-11 08:44 UTC, Xavier R
Details
Apearance and details of the ttf font (201.00 KB, image/jpeg)
2017-07-11 08:51 UTC, Xavier R
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier R 2017-07-11 08:24:22 UTC
Description:
Using a font called "ESRI Oil, Gas, & Water" (included inside the file eri_4.ttf in GIS software ArcGIS 10.3, developped by ESRI), LibreOffice get some problems.

In Writer and in Calc:
 - there in  is no preview in the font list (in the toolbar or inside the panel).
 - if I use this font inside a style, it isn't rendered (and replaced by a standard font).

If I save my document in MS office XML style 



Steps to Reproduce:
1.Write a text
2.Select and apply the font "ESRI Oil, Gas, & Water" 
3.The font isn't rendered


Actual Results:  
3.The font isn't rendered

Expected Results:
The font must be rendered


Reproducible: Always

User Profile Reset: No

Additional Info:
Additional test :
4. Save as MS Office XML document
5. Open in MS Office : font is correctly rendered

Additional information : this font appears to be the only on my PC with a comma in its font name. That's why I supposed it is the cause of this bug but it's only a supposition at this time.
And the only one which fails to render, when I used it on the same workflow (rendering all the unicodes characters of the font inside a table). 

LO version : 5.2.4.2 (x64)
Build ID: 3d5603e1122f0f102b62521720ab13a38a4e0eb0


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 Xavier R 2017-07-11 08:34:46 UTC
Trying to open the ODT file in Ms Word 2010 : it told me that the file is corrupted.

"Impossible d'ouvrir le le fichier XXX.odt. Des problèmes ont été décelés dans son contenu.
Détails
Impossible d'ouvrir le fichier. Le fichier est corrompu."

There was no problem to open the docx file.
Comment 2 Xavier R 2017-07-11 08:36:27 UTC
Created attachment 134578 [details]
File where the bug was detected
Comment 3 Xavier R 2017-07-11 08:37:27 UTC
Created attachment 134579 [details]
PDF Export of the original ODT document from LO 5.2.4.2 x64
Comment 4 Xavier R 2017-07-11 08:40:09 UTC
Created attachment 134580 [details]
DOCX Export of the original ODT document from LO 5.2.4.2 x64
Comment 5 Xavier R 2017-07-11 08:44:21 UTC
Created attachment 134581 [details]
PDF Export of the DOCX document from Ms Word 2010

The font "ESRI Oil, Gas, & Water" is well rendered. 
You can see here its composition.
Comment 6 Xavier R 2017-07-11 08:46:07 UTC
Due to the proprietary license of the software, I suppose I can't join here the TTF file.
Comment 7 Xavier R 2017-07-11 08:51:34 UTC
Created attachment 134582 [details]
Apearance and details of the ttf font
Comment 8 Xavier R 2017-07-11 12:22:53 UTC
Confirmed on newer release of LO: 

Version: 5.3.4.2 (x64)
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
Comment 9 V Stuart Foote 2017-07-11 19:26:40 UTC
Confirmed on Windows 10 Ent x64 en-US with Esri ArcGIS 10.5.1 installed and
Version: 5.3.4.2 (x64)
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
CPU Threads: 8; OS Version: Windows 6.29; UI Render: GL; Layout Engine: new; 
Locale: en-US (en_US); Calc: group

Word 2016 opens the ODF and OOXML versions of the font's sample chart. But as noted Writer (5.3.4) picks up a fallback font in all locations of the LibreOffice UI -- Character dialog preview, Fontname drop list, and Special character dialog.

The 73 other Esri symbol fonts I have loaded behave as expected. No fallback replacement occurs when used, and just the font name is rendered with a fallback font.

So this is a corner case--something breaks in the handling the font-family name with the "," in its title.
Comment 10 ⁨خالد حسني⁩ 2018-02-01 16:39:03 UTC
LibreOffice uses the comma to allow specifying multiple fonts that would be tried one after another, e.g. “FontA, FontB, FontC” means use FontA if it is available, else use FontB then FontC. I this this is why this font is breaking with LibreOffice, and I have no idea how to fix this without breaking existing documents.
Comment 11 QA Administrators 2019-04-22 02:56:27 UTC Comment hidden (obsolete)
Comment 12 Xavier R 2022-09-06 13:47:19 UTC
Hi, 

Sorry for forgetting this old report.

Bug is always here on 7.27 running on Windows 11:

Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 12; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL
Comment 13 Xavier R 2022-09-06 13:53:41 UTC
The bug is always here on 7.3.5 (Portable on win 11):

Version: 7.3.5.2 (x86) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 12; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL
Comment 14 Xavier R 2023-10-02 07:10:02 UTC
Always here on 7.4.7.2, on Windows 11

Version: 7.4.7.2 (x64) / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 12; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL
Comment 15 Xavier R 2024-01-15 09:32:40 UTC
Always here on:

Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded

running on Win 11.