Bug 168183 - DOCX: Saved DOCX not retaining font styles
Summary: DOCX: Saved DOCX not retaining font styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Fonts DOCX-Character Fonts-Name-Combobox
  Show dependency treegraph
 
Reported: 2025-08-29 21:26 UTC by Yousuf Philips (jay) (retired)
Modified: 2026-02-01 14:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample docx (23.46 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-08-29 21:26 UTC, Yousuf Philips (jay) (retired)
Details
how it looks when first opened (107.56 KB, application/pdf)
2025-08-29 21:28 UTC, Yousuf Philips (jay) (retired)
Details
how it looks after opening saved docx (66.57 KB, application/pdf)
2025-08-29 21:29 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2025-08-29 21:26:40 UTC
Created attachment 202603 [details]
sample docx

Steps:
1. Open attached file
2. Observe how it looks
3. Save it as a new DOCX file in MS Word 2010-365 format
4. Close document
5. Open Saved DOCX
6. Notice that document doesn't like it did before saving

Version: 25.8.0.4 (X86_64)
Build ID: 48f00303701489684e67c38c28aff00cd5929e67
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Yousuf Philips (jay) (retired) 2025-08-29 21:28:43 UTC
Created attachment 202604 [details]
how it looks when first opened
Comment 2 Yousuf Philips (jay) (retired) 2025-08-29 21:29:07 UTC
Created attachment 202605 [details]
how it looks after opening saved docx
Comment 3 Dieter 2026-02-01 12:33:24 UTC
I confirm it with

Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 680(Build:0)
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Having a look into style inspector the only one thing, that is different is character font name (Original document has Times New Roman, second document has no specific font name)

For me it looks like a duplicate of bug 121301. Yousuf, feel free to change it back to NEW, if you disagree.

*** This bug has been marked as a duplicate of bug 121301 ***
Comment 4 Aron Budea 2026-02-01 14:22:08 UTC
This is actually a regression from the 7.6 backport of the following commit in 24.2:
https://git.libreoffice.org/core/commit/fcccb8f8d67dd7deec772746661d2d6dff2c14a3
author		Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	Thu Jun 08 12:37:21 2023 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	Thu Jun 08 07:45:21 2023 +0200

"sw: use ThemeExport instead of grab bag"

Same commit as identified in bug 159479 and bug 169195.