Bug 153254 - FILEOPEN DOCX VML WordArt font attributes bold and italic are not imported
Summary: FILEOPEN DOCX VML WordArt font attributes bold and italic are not imported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: FontWork-WordArt VML-Shapes
  Show dependency treegraph
 
Reported: 2023-01-27 21:42 UTC by Regina Henschel
Modified: 2024-09-18 15:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
text in WordArt in bold and italic with screenshot (221.44 KB, application/zip)
2023-01-27 21:42 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 2 Buovjaga 2024-09-18 15:46:46 UTC
Still confirmed

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 36b988312ae8013deefcdf4800592230e7c95ad8
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 18 September 2024