Bug 133637 - Some TTF fonts do not render correctly with Skia rendering enabled
Summary: Some TTF fonts do not render correctly with Skia rendering enabled
Status: RESOLVED DUPLICATE of bug 137122
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2020-06-03 13:50 UTC by Fábio Emilio Costa
Modified: 2021-03-01 21:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample File for testing the bug (23.44 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-03 14:27 UTC, Fábio Emilio Costa
Details
Snapshot from the bug happening with Skia Activated (206.14 KB, image/png)
2020-06-03 14:28 UTC, Fábio Emilio Costa
Details
Snapshot from the same sheet with Skia Deactivated (161.86 KB, image/png)
2020-06-03 14:28 UTC, Fábio Emilio Costa
Details
Sample File for testing the bug - font Incorporated (7.47 MB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-03 14:30 UTC, Fábio Emilio Costa
Details
w Skia Vulkan rendering, no issue with font (230.91 KB, image/png)
2020-06-03 19:23 UTC, V Stuart Foote
Details
7zip file with the faulty font files (211.27 KB, application/x-7z-compressed)
2020-06-09 12:32 UTC, Fábio Emilio Costa
Details
clip Opptima font files of comment 12 installed with Skia Vulka rendering (68.87 KB, image/png)
2021-03-01 19:23 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fábio Emilio Costa 2020-06-03 13:50:52 UTC
Description:
On Windows 10

Using LibreOffice 7.0 beta 1

While Skia is active

Using the Fantasque Sans Mono (https://github.com/belluzj/fantasque-sans) presents garbled text. The text shows okay as long you disable Skia.

It's not the only font it's showing with garbled things.

Steps to Reproduce:
1. Install Fantasque Sans Mono font from https://github.com/belluzj/fantasque-sans
2. Open LibreOffice Calc
3. Check if Skia is active
4. Insert data
5. Change the Font for Fantasque Sans Mono
6. Deactivate Skia

Actual Results:
When Skia is active, Garbled Text
Text gets okay with Skia deactivated


Expected Results:
It should shows okay even with Skia activated


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
Threads da CPU: 4; SO: Windows 10.0 Build 19041; Realizador da interface: padrão; VCL: win
Locale: pt-BR (pt_BR); Interface: pt-BR
Calc: threaded

Windows 10 Pro Build 2004
Comment 1 Fábio Emilio Costa 2020-06-03 14:27:52 UTC
Created attachment 161577 [details]
Sample File for testing the bug
Comment 2 Fábio Emilio Costa 2020-06-03 14:28:32 UTC
Created attachment 161578 [details]
Snapshot from the bug happening with Skia Activated
Comment 3 Fábio Emilio Costa 2020-06-03 14:28:59 UTC
Created attachment 161579 [details]
Snapshot from the same sheet with Skia Deactivated
Comment 4 Fábio Emilio Costa 2020-06-03 14:30:18 UTC
Created attachment 161580 [details]
Sample File for testing the bug - font Incorporated
Comment 5 V Stuart Foote 2020-06-03 19:18:13 UTC
Can not reproduce on Windows 10 Ent 64-bit en-US (1909) with
the Fantasque-San-Mono fonts installed to system and

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 68095e63a8ad8f6079b15e475179a14a64da36d3
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Text of a new Calc sheet authored with the font, or attachment 161577 [details] is well formed.
Comment 6 V Stuart Foote 2020-06-03 19:23:34 UTC
Created attachment 161591 [details]
w Skia Vulkan rendering, no issue with font
Comment 7 Fábio Emilio Costa 2020-06-04 12:41:37 UTC
I can confirm the bug doesn't shows on Windows 10 Pro 1909... I'll add the information too, but had tested on another box with Windows 10 Pro 1909
Comment 8 Fábio Emilio Costa 2020-06-04 14:04:48 UTC
It was a problem with my font file that was corrupted. Installed a new OTF font and it worked with Skia. If this doesn't show as closed, you can close it
Comment 9 V Stuart Foote 2020-06-04 14:10:04 UTC
(In reply to Fábio Emilio Costa from comment #8)
> It was a problem with my font file that was corrupted. Installed a new OTF
> font and it worked with Skia. If this doesn't show as closed, you can close
> it

It shows resolved, thank you for asking--and the feedback.
Comment 10 Fábio Emilio Costa 2020-06-09 12:32:01 UTC
Created attachment 161808 [details]
7zip file with the faulty font files

Reopened the ticket: detected that the problem with Skia involve a particular variaiton of Fantasque Sans Mono
Comment 11 Roman Kuznetsov 2020-06-09 14:49:25 UTC
(In reply to Fábio Emilio Costa from comment #10)
> Created attachment 161808 [details]
> 7zip file with the faulty font files
> 
> Reopened the ticket: detected that the problem with Skia involve a
> particular variaiton of Fantasque Sans Mono

no problem with fonts from attach in

Version: 7.0.0.0.beta1+ (x64)
Build ID: c46a704943be830d603ba0421a329ccb58b8b209
Потоков ЦП: 4; ОС: Windows 10.0 Build 18362; Отрисовка ИП: Skia/Rastr; VCL: win
Locale: ru-RU (ru_RU); ИП: ru-RU
Calc: threaded
Comment 12 David Demmer 2021-03-01 15:46:41 UTC
I can confirm this bug occurs with another TTF font, Optima, as obtained from here:

https://www.cufonfonts.com/download/rf/optima

I had made a document using this font using LibreOffice V 6.xx (don't remember) and when I went to open it using V 7.0.4.2 the text was garbled. It was garbled in Draw and Write modules, as well as in the drop-down menu that appears when selecting fonts.

Disabling Skia resolved the problem.
Comment 13 V Stuart Foote 2021-03-01 16:31:52 UTC
(In reply to David Demmer from comment #12)
> I can confirm this bug occurs with another TTF font, Optima, as obtained
> from here:
> 
> https://www.cufonfonts.com/download/rf/optima
> 
> I had made a document using this font using LibreOffice V 6.xx (don't
> remember) and when I went to open it using V 7.0.4.2 the text was garbled.
> It was garbled in Draw and Write modules, as well as in the drop-down menu
> that appears when selecting fonts.
> 
> Disabling Skia resolved the problem.

Please open another ticket and post its ID here.  Original is Resolved WFM.
Comment 14 Aron Budea 2021-03-01 17:08:11 UTC
(In reply to V Stuart Foote from comment #13)
> Original is Resolved WFM.
The bug report was reopened, please see comment 10.
Comment 15 V Stuart Foote 2021-03-01 19:07:43 UTC
I can confirm the issue with the linked Optima fonts (comment 12) installed to system on Windows builds. But only if all 4 of the fonts .TTF are installed.

With just the Optima.TTF installed, canvas and UI is fine.

Present with Skia rendering (Vulkan or raster only), no issue with default GDI rendering.

Seems to be a broken font, but badly affects Skia rendering.

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: af64bc49d872d8a040d66387303def98eae5cd51
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 16 V Stuart Foote 2021-03-01 19:23:38 UTC
Created attachment 170160 [details]
clip Opptima font files of comment 12 installed with Skia Vulka rendering

clip shows mis-handling of the Optima font with Skia rendering enabled. 
Text is the standard 'dt' DummyText passage.

Interestingly, if I <Ctrl>+A copy the mess, on paste into Notepad or Notepad++ the text of the 'dt' is correct showing UTF-8 format.
Comment 17 Luboš Luňák 2021-03-01 21:10:22 UTC

*** This bug has been marked as a duplicate of bug 137122 ***