Bug 145666 - On export as PDF form field texts do not use the document's font for the field, a PDF standard font is substituted. Printing to PDF not affected
Summary: On export as PDF form field texts do not use the document's font for the fiel...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts PDF-Export
  Show dependency treegraph
 
Reported: 2021-11-13 20:22 UTC by fehler-im-programm
Modified: 2024-04-02 09:17 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case with Verdana (11.79 KB, application/vnd.oasis.opendocument.text)
2022-02-15 17:51 UTC, Regis Perdreau
Details
PDF result when exporting test case (39.14 KB, application/pdf)
2022-02-15 17:52 UTC, Regis Perdreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fehler-im-programm 2021-11-13 20:22:25 UTC
Description:
Since my manual update from Libreoffice 2018 to 2021 (version 7.2.2.2), I can no longer not highlight "Arial black" in bold.

Steps to Reproduce:
1. select "Arial Black"
2. mark bold
3.

Actual Results:
Arial Black (Standard)

Expected Results:
Arial Black (bold)


Reproducible: Always


User Profile Reset: No



Additional Info:
none
Comment 1 Regis Perdreau 2022-02-15 17:51:11 UTC
Hi,

Reproduced in Version: 7.2.2.2 (x64) / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

Something similar with other polices like Verdana is exported as Arial.

See attached document for the Verdana/arial  case.
Comment 2 Regis Perdreau 2022-02-15 17:51:56 UTC
Created attachment 178293 [details]
Test case with Verdana
Comment 3 Regis Perdreau 2022-02-15 17:52:39 UTC
Created attachment 178294 [details]
PDF result when exporting test case
Comment 4 QA Administrators 2024-03-15 03:15:17 UTC Comment hidden (obsolete)
Comment 5 wjsim 2024-03-16 15:53:10 UTC
I'm a little confused as I feel like the actual results and expected results you provided may be flipped around.

From my testing, I noticed that Arial Black is bold no matter what I did, if that was the bug, then the bug still persists, if not I can't seem to reproduce it.

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Did you mean:

Actual results:
Arial Black (Bold)

Expected Results:
Arial Black (Standard)
Comment 6 wjsim 2024-03-16 15:57:21 UTC
I also wanted to add that I think this is how Arial Black is supposed to look?
Comment 7 fehler-im-programm 2024-03-16 19:50:46 UTC
I am now using Libre Office 6.07 (I can't bold "Arial Black" there either). 

I had problems with Libre Office Calc, which kept crashing after the last update. I can therefore no longer say whether the bug has been fixed. Sorry about that.(In reply to wjsim from comment #5)
> I'm a little confused as I feel like the actual results and expected results
> you provided may be flipped around.
> 
> From my testing, I noticed that Arial Black is bold no matter what I did, if
> that was the bug, then the bug still persists, if not I can't seem to
> reproduce it.
> 
> Version: 24.2.1.2 (X86_64) / LibreOffice Community
> Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
> CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded
> 
> Version: 24.2.1.2 (X86_64) / LibreOffice Community
> Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
> CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded
> 
> Did you mean:
> 
> Actual results:
> Arial Black (Bold)
> 
> Expected Results:
> Arial Black (Standard)

No. I wanted to highlight "Arial Black" in bold. And that no longer worked.
Comment 8 fehler-im-programm 2024-03-16 19:51:33 UTC
I am now using Libre Office 6.07 (I can't bold "Arial Black" there either). 

I had problems with Libre Office Calc, which kept crashing after the last update. I can therefore no longer say whether the bug has been fixed. Sorry about that.
Comment 9 Robert Großkopf 2024-03-17 12:09:30 UTC
This bug has been reported about something with "Arial black" as bold font.
Then it has been changed to a report about fonts in form controls.
Reading the title there should be also something about radio buttons.

Such a confusing bug-thread could never been solved.
Comment 10 V Stuart Foote 2024-03-24 12:04:11 UTC
Valid, but believe this is by design for PDF form *export*. [1] 

See bug 50879 regards project use of "built-in" PDF standard fonts for "fillable" forms. For fillable fields on *export to PDF* a "best font" is chosen.

Verdana (or Arial Black) goes to Helvetica which PDF viewers routinely change to Arial
Serif/Roman goes to Times Roman

As compared to printing the PDF (e.g. with MS Print to PDF, or a ghostscript based printer) which will leave the Verdana (and presumably the Arial Black of OP) of the source ODF document intact.

@Miklos ?

=-ref-=
[1] https://gerrit.libreoffice.org/c/core/+/99032
Comment 11 V Stuart Foote 2024-03-24 12:25:29 UTC
Going to => NAB this. 

Dev choice to avoid impact on PDF size with imbedding full fonts. Using the PDF "standard" fonts for form fields avoids bloated PDFs.
Comment 12 V Stuart Foote 2024-03-24 15:51:59 UTC
See also bug 14553 open for UI providing some notice about use of the 14 "standard" PDF fonts.
Comment 13 Miklos Vajna 2024-03-25 08:13:10 UTC
> @Miklos ?

Right, I have nothing to add. We get a font which is definitely there and this means we can't always use the requested font as-is. Hard to have both at the same time. :-)
Comment 14 Regis Perdreau 2024-03-26 09:17:24 UTC
@olivier.hallot
Could we mention
Comment 15 Regis Perdreau 2024-03-26 09:24:28 UTC
Hi,
I'm a bit disappointed by the lack of a solution, it creates a bad user experience and users always blame free software, not proprietary software.
Is bloated pdf a topic in 2024 ?
Tricks like choosing the best font always lead to unpredictable results. What is the best font and what are the criteria?

Could the 14 standard export fonts be mentioned in the documentation?