Bug 125263 - Pdf import now show italic style (may be not installed font)
Summary: Pdf import now show italic style (may be not installed font)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.2.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2019-05-13 14:43 UTC by seven
Modified: 2019-05-14 00:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample (6.05 KB, application/pdf)
2019-05-13 14:44 UTC, seven
Details
sample text string viewed in Adobe Reader, a italic hand printed script (16.57 KB, image/png)
2019-05-13 22:47 UTC, V Stuart Foote
Details
sample PDF inserted into Draw 6.3.0, embedded glyphs are rendered to document canvas (73.26 KB, image/png)
2019-05-13 22:49 UTC, V Stuart Foote
Details
sample PDF filter imported into Draw 6.3.0, fallback font used (52.27 KB, image/png)
2019-05-13 22:59 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description seven 2019-05-13 14:43:49 UTC
Description:
When open pdf document it not show italic style

Steps to Reproduce:
0. Create pdf document with exotic font on other pc
1. Open pdf document in pc where font not installed
2. Compare with pdf readers


Actual Results:
Italic style not show

Expected Results:
Italic style must show


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 seven 2019-05-13 14:44:12 UTC
Created attachment 151364 [details]
Sample
Comment 2 V Stuart Foote 2019-05-13 22:47:42 UTC
Created attachment 151379 [details]
sample text string viewed in Adobe Reader, a italic hand printed script
Comment 3 V Stuart Foote 2019-05-13 22:49:48 UTC
Created attachment 151380 [details]
sample PDF inserted into Draw 6.3.0, embedded glyphs are rendered to document canvas
Comment 4 V Stuart Foote 2019-05-13 22:59:28 UTC
Created attachment 151381 [details]
sample PDF filter imported into Draw 6.3.0, fallback font used
Comment 5 V Stuart Foote 2019-05-14 00:39:27 UTC
Please note in attachment 151381 [details] that the font "JustAnotherHandular" is detected as not installed to system (indicated by the font's name entry on the Properties tab showing in italics)--and so a fallback font gets assigned. 

On this particular system Windows 10 system "VinerHandITC" present on system was used as fallback. Not clear the mechanics of the auto-selection fallback, some sense of FontType and metrics is determined. And, looks like the vinerhand is the last Substitute font for FontType Handwriting [1].

But, rather than a chance selection, user can assign the replacement font(s) for all glyphs held in the PDF, even the rare fully embedded font--that LibreOffice will ignore.

Done from the Tools -> Options -> Fonts "Replacement Table", where the font reported as used but missing can be entered and a replacement to users liking selected.

So, while annoying. LibreOffice filter import "open" of PDF behaves correctly.

When Font is not available to render text--it picks another. User can control what font the resulting Draw Text objects will display. User can also change the font for the Draw text object--supporting editing of the document based on the PDF.

Work on bug 61134 and bug 78186 will eventually make this more efficient.

But at present this works as designed and is NOT A BUG

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/VCL.xcu?r=916cfdd0#878