Bug 44643

Summary: Difference in fractional font size handling in .ppt files, Impress vs. Powerpoint
Product: LibreOffice Reporter: mathog <mathog>
Component: PresentationAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: mathog, sasha.libreoffice
Version: 3.3.4 release   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: example PDF with fractional font sizes (exported from Inkscape)
Image imported and saved to .ppt by LOImpress. (is .ppt, .zip is to allow upload)
Screen dump of what the .ppt file looks like in Powerpoint

Description mathog 2012-01-10 09:31:46 UTC
Created attachment 55386 [details]
example PDF with fractional font sizes (exported from Inkscape)

LO 3.4.4 release
MS PowerPoint 2003
Windows XP SP3

1.  Create a drawing with fractional font sizes (not integer points) in Inkscape, save as PDF.
2.  Import PDF in LODraw
3.  Copy drawing
4.  Paste drawing into LOImpress
5.  Save as .ppt file.

The resulting .ppt file has the following issues:

1.  In LOImpress the text looks as it did in the PDF but the font sizes are improperly displayed as whole integers when the text is selected.  That is, text
which is 12.8 points is said to be 13 points.

2.  When the .ppt file is opened in PowerPoint (2003) the font sizes are identified as the rounded to the nearest integer values AND they are also drawn that way.

Consequently, the resulting .ppt file does not look the same in Impress and PowerPoint.  

Clearly Impress is storing the fractional font sizes in the .ppt file somehow, but however it does this isn't being honored by PowerPoint.  Ideally the .ppt store would be done in such a way that Powerpoint can use the fractional font sizes.  Otherwise at least throw a (specific) warning.
Comment 1 mathog 2012-01-10 09:32:53 UTC
Created attachment 55387 [details]
Image imported and saved to .ppt by LOImpress. (is .ppt, .zip is to allow upload)
Comment 2 mathog 2012-01-10 09:33:42 UTC
Created attachment 55388 [details]
Screen dump of what the .ppt file looks like in Powerpoint

Note how the text now overflows the bounding rectangles.
Comment 3 mathog 2012-01-11 15:38:33 UTC
Tested this with 3.5.0b2 on Windows XP SP3.

The issue is still as previously described.

Tried saving in .pptx format.  Unfortunately for that one the bounding rectangles are lost.  They are initially there following:

draw
open PDF file
select all
copy

impress
paste
save as (pptx).

However, when Impress is closed and the .pptx reopened the bounding rectangles are gone.  Worse, the .pptx will not open in MS Powerpoint 2003 (with the 2007 compatibility pack).  This was the same with both 3.4.4 and 3.4.5b2.

On the plus side, if you can call it that, the fractional font sizes are retained in the .pptx format and shown that was in the font size area in LOImpress, both 3.4.4 and 3.4.5b2.

Tried opening the .pptx in PowerPoint 2010, but that version didn't like the .pptx file either.  PPT 2010 was able to open the .ppt file, and it looked exactly the same as it did in PPT 2003.
Comment 4 sasha.libreoffice 2012-05-07 07:50:16 UTC
Thanks for bugreport
reproduced that second attachment (rename from zip to ppt) looks differently in PP and in Impress. In Impress font size is slightly bigger. This often result in corrupted layout in presentations.
this tested in 3.3.4 and 3.5.3 on Fedora 64 bit

opening first attachment pdf in LO Draw:
in 3.5.3 difference is even more than in 3.3.4 (difference in Draw and pdf viewer)

Changing version to 3.3.4 as most early reproducible
Comment 5 nikos42 2013-11-08 21:23:39 UTC
Confirmed with LibreOffice 4.1.2.3

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.