Bug 104264 - LibO PDF import filter mangles font names
Summary: LibO PDF import filter mangles font names
Status: RESOLVED DUPLICATE of bug 143095
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2016-11-29 18:13 UTC by Callegar
Modified: 2021-06-27 19:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample case (52.70 KB, application/pdf)
2016-11-29 18:16 UTC, Callegar
Details
screenshot (75.36 KB, image/jpeg)
2016-11-30 04:55 UTC, tommy27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Callegar 2016-11-29 18:13:05 UTC
E.g. if a PDF document contains text in the "Source Serif Pro Regular" font, LibO opens the pdf file correctly, but the text font is set to "SourceSerifProlar", which obviously does not exist.
Comment 1 Callegar 2016-11-29 18:15:40 UTC
Sorry, got the name of the font wrong "SourceSerifProular"... but the mangling is the same...
Comment 2 Callegar 2016-11-29 18:16:20 UTC
Created attachment 129138 [details]
Sample case
Comment 3 tommy27 2016-11-30 04:55:13 UTC
Created attachment 129147 [details]
screenshot

I confirm bug under Win8.1 x64 using LibO 5.2.3.3 
see my screenshot
Comment 4 QA Administrators 2017-12-03 18:57:40 UTC Comment hidden (obsolete)
Comment 5 Thomas Lendo 2018-05-24 21:47:36 UTC
Still reproducible with Version: 6.1.0.0.alpha1+
Build ID: 6fecbff9810ae9afc2de8c4d5e9e8a8a511d1f2d
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: group
from yesterday.
Comment 6 QA Administrators 2019-05-25 02:56:13 UTC Comment hidden (obsolete)
Comment 7 c-h 2020-09-16 12:55:13 UTC
Still easily reproducible on 7.0.1.2.
Very annoying with large amounts of text.

I've also run into the following naming issue:
"MinionPro-Regular" in the PDF is named "MinionProular" after it goes through the import filter.
Comment 8 V Stuart Foote 2021-06-27 19:30:39 UTC
The font name embedded into the PDF is PDF compliant --i.e. NO SPACES-- LibreOffice does the correct thing on filter import to Draw and honors that font name, how else would a PDF viewer/touch up tool be able to work with a subsetted font, likewise if LO were to change the font name.

That LibreOffice does not handle the subset or embedded fonts better is bug 82163 or bug 101220. In any case the pdfio import filter is correct in keeping the font name of the source PDF as filter imported.  Some additional filter work might be possible to improve the system fall back match against a LO generated export filter PDF.

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