Bug 153254

Summary: FILEOPEN DOCX VML WordArt font attributes bold and italic are not imported
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dgp-mail
Priority: medium    
Version: 7.5.0.3 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107634, 136406    
Attachments: text in WordArt in bold and italic with screenshot

Description Regina Henschel 2023-01-27 21:42:49 UTC
Created attachment 184967 [details]
text in WordArt in bold and italic with screenshot

Open attached document in LO. It has a VML WordArt shape with bold font, a screenshot of it, a shape with italic font and a screenshot of it.

Error: Neither bold nor italic is imported.

The error happens in TextpathModel::pushToPropMap(..) method in https://opengrok.libreoffice.org/xref/core/oox/source/vml/vmlformatting.cxx?r=ceaff89c

The loop in lines #955 to #979, which interprets the 'style' attribute of the <v:textpath> element, does only evaluates the part "font-family" and "font-size".
When you look at the definition of the <v:textpath> element in '19.1.2.23 textpath (Text Layout Path)' section in ECMA-376 part4, you can see, that the 'style' attribute can have a lot more parts. In the test document the parts 'font-style' and 'font-weight' are used.

LO cannot render all of these possible parts. Besides 'font-style' and 'font-weight' the part 'v-same-letterheights' is directly usable. The 'v-textspacing-mode', 'v-text-spacing' pair and the 'v-text-align' are only partly possible in LO.
Comment 1 Dieter 2023-02-10 12:11:20 UTC
I confirm it with

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded