Bug 161868 - Text in Writer loses custom character spacing across formatting changes
Summary: Text in Writer loses custom character spacing across formatting changes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Character
  Show dependency treegraph
 
Reported: 2024-07-02 12:47 UTC by Hossein
Modified: 2024-07-06 02:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample ODT document showing combination of custom spacing and formatting changes (13.85 KB, application/vnd.oasis.opendocument.text)
2024-07-02 12:47 UTC, Hossein
Details
PDF output from LibreOffice 25.2 dev master (7.77 KB, application/pdf)
2024-07-02 12:58 UTC, Hossein
Details
PDF output from MS Word (5.61 KB, application/pdf)
2024-07-02 13:00 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-07-02 12:47:03 UTC
Created attachment 195085 [details]
A sample ODT document showing combination of custom spacing and formatting changes

Description:
When formatting is applied to characters in Writer, custom character spacing is no longer applied to the text.

Steps to Reproduce:
1. Open a new Writer document
2. Write some text
3. Select the whole text, apply custom spacing by right clicking, then going to "Character > Character... > Position > Spacing", and setting "Character spacing" to -10.0 pt. You should be able to see the characters are close to each other.
4. Pick a character inside the text. Select it, and make it red.

Alternatively, you can open the attached ODT file.

Actual Results:
Custom spacing goes away across formatting changes.

Expected Results:
Custom spacing should not change across formatting changes.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6a0d4d45d9e5933028f437ebd6756946a127e4a4
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Hossein 2024-07-02 12:58:14 UTC
Created attachment 195086 [details]
PDF output from LibreOffice 25.2 dev master

PDF output of the above attachment, created by the latest LibreOffice 25.2 dev master.

Line 1 and 2 should have the same character spacing (without considering color), but they have different spacing in the PDF output.

Line 3 and 4 should NOT have the same character spacing (without considering vertical positioning), but they have the same spacing in the PDF output.

Last line tries to create something like TeX logo:
https://en.wikipedia.org/wiki/TeX#/media/File:TeX_logo.svg
Comment 2 Hossein 2024-07-02 13:00:47 UTC
Created attachment 195087 [details]
PDF output from MS Word

This is the output from MS Office Online, which seems correct.

You can also see it here:
https://view.officeapps.live.com/op/view.aspx?src=https://bugs.documentfoundation.org/attachment.cgi?id=195085
Comment 3 m_a_riosv 2024-07-02 22:21:18 UTC
Reproducible
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: bff48f885e3aad560776a42e451a735ed6c72c57
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded