Incomplete variable fonts export to PDF

Bug #2006113 reported by Yves Roggeman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Won't Fix
Medium
libreoffice (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu version: 22.10 (Kinetic)
LO version: 7.5.0_rc3-0ubuntu0.22.10.1~lo1
Document Foundation version: 7.5.0.3 (X86_64)

When exporting to PDF a document containing variable fonts, some instances (different weight or width) do not appear. There are in the font list of the PDF document, but not correctly displayed (or printed).

This incomplete behaviour is observed with the Ubuntu version of LO7.5, but not with the "official" one, the .deb downloaded from the Document Foundation site.

The ODT file is attached, with both PDF output (_UB: Ubuntu, _DF: Document Foundation)

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

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

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

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.)

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

Created attachment 184687
test document to reproduce the bug

Sure, here you go.

Revision history for this message
In , jindam, vani (jindam-vani) wrote :

no repro on android viewer [fdroid version]
Version: 7.6.0.0.alpha0+
Build ID: d6c54b3d4ee7

Revision history for this message
In , jindam, vani (jindam-vani) wrote :

Created attachment 184693
pdf exported from .odt file

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

Created attachment 184695
bug repro on OP's computer

I believe your document doesn't use the same font than me. Here's what I get

Revision history for this message
In , Nv4y-robert (nv4y-robert) wrote :

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"

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

Created attachment 184711
bug repro on OP's computer - safe mode on

Here's the result : more problems.

Revision history for this message
In , Khaled-n (khaled-n) wrote :

Created attachment 184727
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

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

I'm on LibreOffice prereleases PPA.

Revision history for this message
In , Khaled-n (khaled-n) wrote :

(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?

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

2.7.4.1-ubuntu3.1

Revision history for this message
In , Khaled-n (khaled-n) wrote :

(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.

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

Can you please provide me with a link to TDF's build ? I can't seem to find it anywhere

Revision history for this message
In , Nv4y-robert (nv4y-robert) wrote :

(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/

Revision history for this message
In , Khaled-n (khaled-n) wrote :

(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/

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

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.

Revision history for this message
In , Khaled-n (khaled-n) wrote :

(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.

Revision history for this message
In , Célian Godefroid (celiangodefroid) wrote :

Well, I guess the problem comes with LibreOffice, then.

Revision history for this message
Yves Roggeman (yrogge) wrote :
tags: added: fonts variable
tags: added: variable-fonts
removed: fonts variable
Revision history for this message
In , Khaled-n (khaled-n) wrote :

(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/?

Revision history for this message
Yves Roggeman (yrogge) wrote :

It seems to be solved with Ubuntu version 1:7.5.1~rc1-0ubuntu0.22.10.1~lo5 (Kinetic) installed from “LibreOffice Pre-Releases” PPA.

But I cannot understand why same versions downloaded from Ubuntu PPA's and form the Document Foundation site may have a different behaviour for PDF export.

tags: added: ppa
Changed in libreoffice (Ubuntu):
status: New → Fix Released
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.