Bug 153048 - Export a document with TTF fonts to PDF leads to text not displayed
Summary: Export a document with TTF fonts to PDF leads to text not displayed
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.1 rc
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-16 15:17 UTC by Kalytis
Modified: 2023-02-08 17:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test document to reproduce the bug (13.07 KB, application/vnd.oasis.opendocument.text)
2023-01-16 15:26 UTC, Kalytis
Details
pdf exported from .odt file (8.88 KB, application/pdf)
2023-01-16 16:39 UTC, jindam, vani
Details
bug repro on OP's computer (38.75 KB, application/pdf)
2023-01-16 16:52 UTC, Kalytis
Details
bug repro on OP's computer - safe mode on (10.01 KB, application/pdf)
2023-01-17 14:59 UTC, Kalytis
Details
PDF from 7.5.0.2 with EB Garamond (60.92 KB, application/pdf)
2023-01-18 06:40 UTC, ⁨خالد حسني⁩
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kalytis 2023-01-16 15:17:32 UTC
Description:
I used to suffer from the fact that LibO didn't support correctly variable fonts. I just updated to 7.5.0.2, and now when I export a document made with a TTF font (for me, EB Garamond), some text isn't displayed at all on the PDF. I assume variable font still causes problems.

Steps to Reproduce:
1. Use a TTF font
2. Write text, put some in bold/italic
3. Export it to PDF

Actual Results:
Some of the text isn't exported on the PDF.

Expected Results:
All the text should appear, with proper settings.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu package version: 1:7.5.0~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 1 Xisco Faulí 2023-01-16 15:25:31 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Kalytis 2023-01-16 15:26:18 UTC
Created attachment 184687 [details]
test document to reproduce the bug

Sure, here you go.
Comment 3 jindam, vani 2023-01-16 16:37:53 UTC
no repro on android viewer [fdroid version]
Version: 7.6.0.0.alpha0+
Build ID: d6c54b3d4ee7
Comment 4 jindam, vani 2023-01-16 16:39:04 UTC
Created attachment 184693 [details]
pdf exported from .odt file
Comment 5 Kalytis 2023-01-16 16:52:46 UTC
Created attachment 184695 [details]
bug repro on OP's computer

I believe your document doesn't use the same font than me. Here's what I get
Comment 6 Robert Großkopf 2023-01-17 14:51:04 UTC
Tested this one with OpenSUSE 15.3 64bit rpm Linux.
Installed ttf EB Garamound first, then started version LO 7.5.0.2.
No problem to export the test document to *.pdf.

Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

Please try it with "Help" → "Restart in safe mode"
Comment 7 Kalytis 2023-01-17 14:59:17 UTC
Created attachment 184711 [details]
bug repro on OP's computer - safe mode on

Here's the result : more problems.
Comment 8 ⁨خالد حسني⁩ 2023-01-18 06:40:15 UTC
Created attachment 184727 [details]
PDF from 7.5.0.2 with EB Garamond

Are you using Ubuntu-supplied builds or LibreOffice one’s? This functionality requires HarfBuzz ≥ 4.0.0, but Ubuntu 22.04 seems to be still shipping HarfBuzz 2.7.4: https://launchpad.net/ubuntu/jammy/+source/harfbuzz

Here is PDF exported from:
Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 6; OS: Mac OS X 12.6.2; UI render: default; VCL: osx
Locale: en-EG (en_EG.UTF-8); UI: en-US
Calc: threaded
Comment 9 Kalytis 2023-01-18 09:52:22 UTC
I'm on LibreOffice prereleases PPA.
Comment 10 ⁨خالد حسني⁩ 2023-01-18 14:24:47 UTC
(In reply to Kalytis from comment #9)
> I'm on LibreOffice prereleases PPA.

So you are using system HarfBuzz, can you confirm what version of libharfbuzz0b do you have?
Comment 11 Kalytis 2023-01-26 23:25:31 UTC
2.7.4.1-ubuntu3.1
Comment 12 ⁨خالد حسني⁩ 2023-01-27 00:51:31 UTC
(In reply to Kalytis from comment #11)
> 2.7.4.1-ubuntu3.1

I’m afraid, variable fonts won’t work with this. You will have to either use TDF builds or wait until system HarfBuzz is updated.
Comment 13 Kalytis 2023-01-27 08:55:03 UTC
Can you please provide me with a link to TDF's build ? I can't seem to find it anywhere
Comment 14 Robert Großkopf 2023-01-27 09:35:50 UTC
(In reply to Kalytis from comment #13)
> Can you please provide me with a link to TDF's build ? I can't seem to find
> it anywhere

https://www.libreoffice.org/download/download-libreoffice/
Comment 15 ⁨خالد حسني⁩ 2023-01-27 20:00:00 UTC
(In reply to Robert Großkopf from comment #14)
> (In reply to Kalytis from comment #13)
> > Can you please provide me with a link to TDF's build ? I can't seem to find
> > it anywhere
> 
> https://www.libreoffice.org/download/download-libreoffice/

7.5 is not released yet, so not available on this page, but one can get the download link for the RC2 from its announcement https://qa.blog.documentfoundation.org/2023/01/17/libreoffice-7-5-rc2-is-available-for-testing/
Comment 16 Kalytis 2023-01-30 12:03:23 UTC
I'm already using 7.5.0.1, see the version mentionned on my bug.

I was talking about a way to update libharfbuzzb0 to a newer version than 2.7.4.1-ubuntu3.1, as it seems to be the problem here.
Comment 17 ⁨خالد حسني⁩ 2023-01-30 21:54:13 UTC
(In reply to Kalytis from comment #16)
> I'm already using 7.5.0.1, see the version mentionned on my bug.
> 
> I was talking about a way to update libharfbuzzb0 to a newer version than
> 2.7.4.1-ubuntu3.1, as it seems to be the problem here.

TDF builds use a bundled version of harfbuzz and don't use the system installed one.
Comment 18 Kalytis 2023-01-30 21:55:10 UTC
Well, I guess the problem comes with LibreOffice, then.
Comment 19 ⁨خالد حسني⁩ 2023-02-08 17:59:16 UTC
(In reply to Kalytis from comment #18)
> Well, I guess the problem comes with LibreOffice, then.

Did you try the builds from https://www.libreoffice.org/download/download-libreoffice/?