Created attachment 177986 [details]
Screenshot showing the problem
Font size of text within shapes/diagrams is being imported incorrectly, which breaks the shape layout.
For instance, in the attached DOCX file notice that the font size is 11pt in MS Word, but it is imported as 12pt in LO Writer (see attached screenshot).
I am using LO 7.3 rc2 on Windows, but I got the same result with LO 7.2.5 on Linux.
Weirdly, using LO 7.4 alpha, the text was not imported.
Created attachment 177987 [details]
Sample DOCX file
This is the DOCX file I used to take the screenshot.
There was a fix today that might be related, please try with master tomorrow.
Bug is now about the current state and that is missing text from 7.4:
Date: Mon Jan 3 14:43:29 2022 +0100
author Attila Bakos (NISZ) <firstname.lastname@example.org> Nov 10 2021
tdf#143574 OOXML export/import of textboxes in group shapes
CC Attila please see this.
Let's keep info on font size, It was OK 11 in LO 6.4 and NOK 12 in LO 7.0.
To be opened another bug after this one.
Date: Fri Nov 22 11:07:19 2019 +0100
author Justin Luth <email@example.com> Tue Oct 22 2019
tdf#128153 docx/VML: apply style properties to shape text
Created attachment 178034 [details]
How it looks after changing anchor type in 7.4
I have just seen this.
The problem likely the missing implementation of As_char anchor for group-shapes in textboxhelper, what i am working for now. If you change the anchor to another type (at char for example as in my attachemnt) what is implemented the text will be shown. Of course this have to be fixed, so i am on it. Patch soon. :)
And, the font size is fixed ;)
Created attachment 178168 [details]
There is the patch for this:
After i finish the test for it, and passes Jenkins it can be merged, and the problem will be fixed as in my attachment...
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":
tdf#147126 sw: fix missing as_char anchoring of group textboxes
It will be available in 7.4.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I set Verified. Thanks.
you are welcome!