Bug 153507 - Writer can't import and align RTF files using Consolas font
Summary: Writer can't import and align RTF files using Consolas font
Status: RESOLVED DUPLICATE of bug 135079
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts
  Show dependency treegraph
 
Reported: 2023-02-09 21:09 UTC by bugz.vufd7
Modified: 2024-09-20 16:38 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
A minimal RTF document aiming to display tabular information using the fixed-width font Consolas (1.21 KB, application/rtf)
2023-02-09 21:09 UTC, bugz.vufd7
Details
How the sample RTF file renders when opened in Writer (134.73 KB, image/png)
2023-02-09 21:11 UTC, bugz.vufd7
Details
How the sample RTF file renders using Abiword (expected behaviour in Writer!) (129.08 KB, image/png)
2023-02-09 21:12 UTC, bugz.vufd7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugz.vufd7 2023-02-09 21:09:26 UTC
Created attachment 185272 [details]
A minimal RTF document aiming to display tabular information using the fixed-width font Consolas

I opened the simple, minimal RTF file (attached) in Writer. As I had specified a fixed-width font, I expected to see all characters aligned in columns, mirroring how they were laid out in the source file. They weren't.

On the same system, Abiword could import the file and display it as expected. When I saved the file in Abiword as .odt and opened it in Writer, it rendered as I expected.

If I changed the font defined in the RTF document to Courier ({\f0 Courier New;}) Writer was able to align all the characters as expected.
Comment 1 bugz.vufd7 2023-02-09 21:11:48 UTC
Created attachment 185273 [details]
How the sample RTF file renders when opened in Writer
Comment 2 bugz.vufd7 2023-02-09 21:12:38 UTC
Created attachment 185274 [details]
How the sample RTF file renders using Abiword (expected behaviour in Writer!)
Comment 3 m_a_riosv 2023-02-09 23:54:32 UTC
Reproducible, open fine with Microsoft 365 MSO (versión 2301 compilación 16.0.16026.20002) de 64 bits.
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9d44236a62bf59d120dda89924d0d1407b2bd52b
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded Jumbo
Comment 4 ⁨خالد حسني⁩ 2023-02-16 15:46:50 UTC
Looks fine here with:

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 6; OS: Mac OS X 13.2; UI render: default; VCL: osx
Locale: en-EG (en_EG.UTF-8); UI: en-US
Calc: threaded

and:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9788a565b3241d1bd62394b9e29c322361d05f80
CPU threads: 6; OS: Mac OS X 13.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_EG.UTF-8); UI: en-US
Calc: threaded
Comment 5 Buovjaga 2024-09-20 16:18:27 UTC
I bibisected this and found a dupe.

*** This bug has been marked as a duplicate of bug 135079 ***
Comment 6 V Stuart Foote 2024-09-20 16:38:36 UTC
Use the <Ctrl>+H 'Find and Replace...' dialog with its regular expression checkbox checked.

Then find all \u2006, and replace with blank field to delete them.

On import the U+2006 SIX-PER-EM-SPACE are added for other RTF imports, implemented [1] in ww8 filter for some RTF but issues with others.

=-ref-=
[1] https://gerrit.libreoffice.org/c/core/+/77172