Bug 91208 - FILEOPEN pptx: Arial (Body) font from theme not understood and replaced (so causes text to wrap)
Summary: FILEOPEN pptx: Arial (Body) font from theme not understood and replaced (so c...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Doc-Themes
  Show dependency treegraph
 
Reported: 2015-05-10 18:42 UTC by Ofir
Modified: 2021-01-28 14:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
pptx showing the issue (29.60 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2015-05-10 18:42 UTC, Ofir
Details
PDF exported from PowerPoint (45.00 KB, application/pdf)
2015-05-10 18:43 UTC, Ofir
Details
Default font and manual font setting (29.32 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2015-07-17 22:00 UTC, Ofir
Details
Screenshot of the original document side by side in PP and Impress (74.92 KB, image/png)
2021-01-28 14:09 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ofir 2015-05-10 18:42:30 UTC
Created attachment 115484 [details]
pptx showing the issue

In the attached pptx there are two text boxes.

In PowerPoint 2013 the text in both boxes is in a single line and not wrapped.
In PowerPoint the font in the left box is Arial (Body) and the text in the right box is Arial.

In LO the font in the left box is Calibri and the text is wrapped in two lines.

The attached PDF exported from PowerPoint show the expected result. The text is not wrapped in the left box.

Tested on Ubuntu 14.04 32 bit, LO 4.4.3.2.
Comment 1 Ofir 2015-05-10 18:43:31 UTC
Created attachment 115485 [details]
PDF exported from PowerPoint
Comment 2 Ofir 2015-05-10 20:17:09 UTC
'Arial (Body)' is replaced with Calibri with and without the ttf-mscorefonts-installer package.

Might be related:
https://bugs.documentfoundation.org/show_bug.cgi?id=62559
https://bugs.documentfoundation.org/show_bug.cgi?id=64232
Comment 3 Stephan van den Akker 2015-05-10 21:08:42 UTC
In the test pptx the problem shows up in OOo 3.3.0 (32-bit), even with Arial and Calibri installed on the system (tested with windows version on openSuSE 13.2 64-bit under wine). 

Erroneous Wrapping and using Calibri on Ubuntu 14.04.2 LTS with stock LO 4.2

No wrapping, but still using Calibri instead of Arial on openSuSE 13.2 with

- OOo 3.3.0 (OOO330m20, Build:9567)
- stock LO Version 4.3.6.2 (64-bit)
- LOdev Version: 5.0.0.0.alpha1+ (Build ID: d2724d4e07c9bfc58f1c9a008d538d6459c392fb
Locale: en-US (en_US.UTF-8)) 64-bit

Arial ttf's are installed on both systems
Comment 4 Timur 2015-05-11 18:12:53 UTC
Wrapping not reproduced in Windows.
Comment 5 Ofir 2015-07-17 21:53:33 UTC
In PowerPoint the theme defines a default Font for each language under majorFont and minorFont. When a text element doesn't have a Font defined, PowerPoint uses the default language Font.
In the new attached example we have two text boxes.
The first one use the default font.
The second, has the font set to Arial.
LO doesn't understand how to read the PowerPoint default font setting in the first text box so it replaces the font with FreeSans.
In the second text box we don't have this issue because the font is defined. LO replaces the font only if it doesn't have it installed.

Default Fonts in ppt/theme/theme1.xml

<a:fontScheme name="Office">
  <a:majorFont>
    <a:latin typeface="Calibri Light" panose="020F0302020204030204"/>
    ...
    <a:font script="Hebr" typeface="Times New Roman"/>
    ...
  </a:majorFont>
  <a:minorFont>
    <a:latin typeface="Calibri" panose="020F0502020204030204"/>
    ...
    <a:font script="Hebr" typeface="Arial"/>
    ...
  </a:minorFont>
</a:fontScheme>

Font not set - use default.
<a:p>
  <a:r>
    <a:rPr lang="he-IL" dirty="0" smtClean="0"/>
    <a:t>א</a:t>
  </a:r>
  <a:endParaRPr lang="en-US" dirty="0"/>
</a:p>


Font set to Arial.
<a:p>
  <a:r>
    <a:rPr lang="he-IL" dirty="0" smtClean="0">
      <a:latin typeface="Arial" panose="020B0604020202020204" pitchFamily="34" charset="0"/>
      <a:cs typeface="Arial" panose="020B0604020202020204" pitchFamily="34" charset="0"/>
    </a:rPr>
    <a:t>א</a:t>
  </a:r>
  <a:endParaRPr lang="en-US" dirty="0">
    <a:latin typeface="Arial" panose="020B0604020202020204" pitchFamily="34" charset="0"/>
    <a:cs typeface="Arial" panose="020B0604020202020204" pitchFamily="34" charset="0"/>
  </a:endParaRPr>
</a:p>
Comment 6 Ofir 2015-07-17 22:00:49 UTC
Created attachment 117306 [details]
Default font and manual font setting

The first text box uses the default font in PowerPoint. LO use the wrong font instead of checking theme1.xml

The second text box has a font set to Arial. LO handle it right. It uses Arial if installed or the replacement otherwise.
Comment 8 QA Administrators 2016-09-20 10:29:30 UTC Comment hidden (obsolete)
Comment 9 Ofir 2016-09-20 11:07:15 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2017-09-29 08:52:56 UTC Comment hidden (obsolete)
Comment 11 Ofir 2017-11-10 00:11:10 UTC
Still reproducible with LO 6.0.0.0.alpha1.
Comment 12 QA Administrators 2018-11-11 03:47:15 UTC Comment hidden (obsolete)
Comment 13 Mark Hung 2019-10-19 06:52:28 UTC
The font in the left box is still Calibri.

版本:6.2.5.2 (x64)
組建 ID:1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU 執行緒:8; OS:Windows 10.0; UI 算繪:預設; VCL: win; 
語言地區:zh-TW (zh_TW); UI語言:zh-TW
Calc: threaded
Comment 14 NISZ LibreOffice Team 2021-01-28 14:09:00 UTC
Created attachment 169240 [details]
Screenshot of the original document side by side in PP and Impress

Still a problem in:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 7eb289c49cc7245ef3001a39be0c15d06bbe875b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL