Bug 107442 - DOCX,FILEOPEN Wrong line breaks (due to rendering of replacement font) in page footer
Summary: DOCX,FILEOPEN Wrong line breaks (due to rendering of replacement font) in pag...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-26 10:34 UTC by Oliver Sander
Modified: 2017-08-14 15:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The document in question (83.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-04-26 10:35 UTC, Oliver Sander
Details
The document as rendered by LO 5.1.3 (97.51 KB, application/pdf)
2017-04-26 10:36 UTC, Oliver Sander
Details
The document as rendered by MSOffice (60.80 KB, application/pdf)
2017-04-26 10:37 UTC, Oliver Sander
Details
The document as rendered by LO 5.4.0.0.alpha0+ (86.30 KB, application/pdf)
2017-04-26 10:38 UTC, Oliver Sander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Sander 2017-04-26 10:34:59 UTC
Description:
I get spurious line breaks in the footer of a letter template I have.  This is a regression.  LO 5.1 used to get those line breaks correctly.

Actual Results:  
 

Expected Results:
 


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 Oliver Sander 2017-04-26 10:35:47 UTC
Created attachment 132849 [details]
The document in question
Comment 2 Oliver Sander 2017-04-26 10:36:28 UTC
Created attachment 132850 [details]
The document as rendered by LO 5.1.3
Comment 3 Oliver Sander 2017-04-26 10:37:00 UTC
Created attachment 132851 [details]
The document as rendered by MSOffice
Comment 4 Oliver Sander 2017-04-26 10:38:37 UTC
Created attachment 132852 [details]
The document as rendered by LO 5.4.0.0.alpha0+
Comment 5 Oliver Sander 2017-04-26 10:40:29 UTC
The problem is in the footer.  In the center block that starts with 'Besucheradresse', LO 5.4 has spurious line breaks, e.g., in front of the '14'.

Also, the phrase "Kein Zugang für..." should be on a single line, but is actually on two.
Comment 6 Cor Nouws 2017-04-26 10:49:54 UTC
Hi Oliver,

Thanks for filing.
I see the same problem in version 4.4.7, 5.1.6, and a recent master-build.
The issue is that the font is not available and the chosen replace font has a different rendering, so that the lines do not fit in the give width of the frames.
Is attachment 132850 [details] / 5.1.3 on the same computer as the other one?
Comment 7 Oliver Sander 2017-04-26 12:44:59 UTC
To be honest I am not absolutely certain anymore.  When filing the bug I was thinking that all LO renderings are from the same (Linux) machine.  But now that I think of it the LO 5.1.3 one may actually come from a windows machine.

And thinking of it some more: that particular windows machine does have the missing font, and my Linux one doesn't.

If the font replacement really is the culprit, is there anything that can be done?  The original font is proprietary, and it is to be expected that many people at my institution will want to use the document without having to install the font first.
Comment 8 Oliver Sander 2017-04-27 08:48:06 UTC
I installed the missing fonts, and indeed the problem disappears.

I don't know enough about fonts to judge whether this is a bug nonetheless.  Feel free to deal with it as you please.

Thanks!
Comment 9 Cor Nouws 2017-08-14 15:07:03 UTC
(In reply to Oliver Sander from comment #8)
> I installed the missing fonts, and indeed the problem disappears.

thanks for testing and reporting!

> I don't know enough about fonts to judge whether this is a bug nonetheless. 
> Feel free to deal with it as you please.

Thanks for confirming Oliver. Proper fonts (original or a replacement with similar metrics..) are - in quite some cases - crucial for proper rendering.