Bug 143006 - [EMF+] DrawString ignores \n\r
Summary: [EMF+] DrawString ignores \n\r
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.0.2.2 release
Hardware: All All
: medium normal
Assignee: Bartosz
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2021-06-23 13:22 UTC by Valek Filippov
Modified: 2025-03-13 08:52 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
EMF sample with DrawString that has \n\r (468 bytes, image/x-emf)
2021-06-23 13:24 UTC, Valek Filippov
Details
Screenshot of the sample opened in MS Paint (top) and LO7.3alpha (bottom) (9.43 KB, image/png)
2021-06-23 13:27 UTC, Valek Filippov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2021-06-23 13:22:26 UTC
Description:
LO seems to ignore control characters in the text of the DrawString and it should not.

Steps to Reproduce:
Open attached EMF sample.

Actual Results:
LO shows one line of text.

Expected Results:
There should be a line break between words.


Reproducible: Always


User Profile Reset: No



Additional Info:
Minified from AOO i#74168
Comment 1 Valek Filippov 2021-06-23 13:24:40 UTC
Created attachment 173107 [details]
EMF sample with DrawString that has \n\r
Comment 2 Valek Filippov 2021-06-23 13:27:13 UTC
Created attachment 173108 [details]
Screenshot of the sample opened in MS Paint (top) and LO7.3alpha (bottom)
Comment 3 Roman Kuznetsov 2021-06-24 13:14:54 UTC
Confirm in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: de7356c2e0cb099fac396808b5a86a0393b48e5f
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 4 QA Administrators 2023-06-25 03:13:29 UTC Comment hidden (obsolete)
Comment 5 Kira Tubo 2023-09-23 19:47:03 UTC
Earliest version issue has appeared is 5.0.2.1. There was no issue in 5.0.1.2, therefore this is a regression. 

Version: 5.0.2.1
Build ID: 9a18d52abbdfbdc2ac9acebec2b92e7859eb73b7-GL
Locale: en-US (en_US)

Reproducible in daily master build. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 486ae5db6987411d5e394de94b2b077099d03856
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 6 raal 2024-08-01 15:25:58 UTC
Tested with Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)/Linux and I can see the bug, no regression found.
Comment 7 Saburo 2025-03-13 08:52:29 UTC
It's been a while since this assignment.
Please use this as reference.

bisected with win32-5.1 9639fc200b5c0779b1e60d04aa15f8f2e7868724
When openGL was turned off, it was displayed in two lines even in 5.4.7.

The reason it is displayed in one line from 6.0 is the following commit.
bisected with win32-6.0
commit ebc11ae0b132eefd3b1b1a837a8d0ad3ba73b460
author Thorsten Behrens <Thorsten.Behrens@CIB.de>

emfplus: cut over to new EMF+ renderer

We're on par with the old functionality now (modulo a few smaller
issues); overall QoS is much better, we get vector output on pdf
and print, and the need for large offscreen bitmap rendering goes
away.