Bug 140538 - Some bold Google Fonts not exporting to PDF
Summary: Some bold Google Fonts not exporting to PDF
Status: RESOLVED DUPLICATE of bug 108497
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: topicQA
Depends on:
Blocks:
 
Reported: 2021-02-19 14:57 UTC by Rafael Lima
Modified: 2022-11-24 06:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ODP Presentation File (619.29 KB, application/vnd.oasis.opendocument.presentation)
2021-02-19 14:59 UTC, Rafael Lima
Details
PDF Exported File (407.82 KB, application/pdf)
2021-02-19 15:00 UTC, Rafael Lima
Details
ODT Test File (Writer) (11.76 KB, application/vnd.oasis.opendocument.text)
2021-02-19 18:03 UTC, Rafael Lima
Details
PDF Exported File (from Writer) (63.34 KB, application/pdf)
2021-02-19 18:03 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2021-02-19 14:57:22 UTC
I am preparing presentations using Google fonts and some of them do not get exported as bold face to PDFs. However, when I'm editing the presentation, LO shows them correctly. The problem happens after export.

In the attached files (ODP and PDF), refer to Slides 3 to 7:
- Slide 3 uses font Mulish (does not export bold)
- Slide 4 uses font Lato (exports bold correctly)
- Slide 5 uses font Roboto (does not export bold)
- Slide 6 uses font Source Sans Pro (exports bold correctly)
- Slide 7 uses font Cabin (does not export bold)

I tested the PDF in multiple PDF viewers and the font errors persisted, so I believe it has something to do with how Impress exports these fonts.

The weird thing is that in the UI, the bold font appears correctly, but the export changes the font to normal weight.

Here's my setup:

Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 16; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.4~rc2-0ubuntu0.20.10.1~lo1
Calc: threaded
Comment 1 Rafael Lima 2021-02-19 14:59:38 UTC
Created attachment 169900 [details]
ODP Presentation File

This is the original ODP presentation file. Refer to Slides 3 to 7.
Comment 2 Rafael Lima 2021-02-19 15:00:33 UTC
Created attachment 169901 [details]
PDF Exported File

This is the PDF exported from the ODP file.
Comment 3 V Stuart Foote 2021-02-19 16:44:54 UTC
Were the problem fonts set bold format (LO bold rendering) or were they true Bold applied from character dialog?

Would expect the same behavior for fonts when used in Draw.  And probably similar if used in Calc and Write. True?
Comment 4 Rafael Lima 2021-02-19 18:03:00 UTC
(In reply to V Stuart Foote from comment #3)
> Were the problem fonts set bold format (LO bold rendering) or were they true
> Bold applied from character dialog?

I used the character dialog and the tools in the sidebar to apply the Bold format.

> Would expect the same behavior for fonts when used in Draw.  And probably
> similar if used in Calc and Write. True?

I tested the same issue in Writer and again the bold fonts were not exported to PDF. See the ODT and PDF files attached.
Comment 5 Rafael Lima 2021-02-19 18:03:27 UTC
Created attachment 169904 [details]
ODT Test File (Writer)
Comment 6 Rafael Lima 2021-02-19 18:03:53 UTC
Created attachment 169905 [details]
PDF Exported File (from Writer)
Comment 7 QA Administrators 2021-02-20 04:06:44 UTC Comment hidden (noise)
Comment 8 Julien Nabet 2021-03-12 20:55:39 UTC
On pc Debian x86-64 with LO Debian package 7.0.4 I don't reproduce this.

But if I take example of Mulish fonts, there are 2 sets:
1) the static fonts:
static/Mulish-ExtraLight.ttf  
static/Mulish-Light.ttf  
static/Mulish-Regular.ttf  
static/Mulish-Medium.ttf  
static/Mulish-SemiBold.ttf  
static/Mulish-Bold.ttf  
static/Mulish-ExtraBold.ttf  
static/Mulish-Black.ttf  
static/Mulish-ExtraLightItalic.ttf  
static/Mulish-LightItalic.ttf  
static/Mulish-Italic.ttf  
static/Mulish-MediumItalic.ttf  
static/Mulish-SemiBoldItalic.ttf  
static/Mulish-BoldItalic.ttf  
static/Mulish-ExtraBoldItalic.ttf  
static/Mulish-BlackItalic.ttf  

2) the variable fonts
Mulish-VariableFont_wght.ttf  
Mulish-Italic-VariableFont_wght.ttf

If you installed variable fonts, I don't think it'll work because LO doesn't know how to deal with it when exporting in pdf. (see https://bugs.documentfoundation.org/show_bug.cgi?id=140710#c14)

Could you confirm it still doesn't work, at least for Mulish, when you use fonts from static folder?
Comment 9 Rafael Lima 2021-03-16 01:27:43 UTC
> Could you confirm it still doesn't work, at least for Mulish, when you use
> fonts from static folder?

First I tested using the current Mulish font in my system and the export did not work (bold font was not exported).

Then I uninstalled all the Mulish font files and reinstalled only the static files from the link below:
https://fonts.google.com/specimen/Mulish?preview.text_type=custom

This way the exported PDF contained bold-face as expected.
Comment 10 QA Administrators 2021-03-16 04:30:15 UTC Comment hidden (noise)
Comment 11 Julien Nabet 2021-03-16 07:42:56 UTC
Ok so it's a dup of tdf#140710 then.

*** This bug has been marked as a duplicate of bug 140710 ***
Comment 12 V Stuart Foote 2021-07-28 14:26:07 UTC

*** This bug has been marked as a duplicate of bug 103596 ***
Comment 13 ⁨خالد حسني⁩ 2022-11-24 06:10:31 UTC

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