Bug 137343 - Dropcaps can produce Text outside of Text-Borders
Summary: Dropcaps can produce Text outside of Text-Borders
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: Paragraph-Drop-Caps
  Show dependency treegraph
 
Reported: 2020-10-08 19:42 UTC by Clarc
Modified: 2023-10-12 21:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug-Screenshot (184.88 KB, image/png)
2020-10-08 19:42 UTC, Clarc
Details
Screenshot showing the bug (57.05 KB, image/jpeg)
2021-01-03 16:18 UTC, Dieter
Details
test file (15.29 KB, application/vnd.oasis.opendocument.text)
2023-01-07 16:36 UTC, Dieter
Details
WorkingFile 7.5.1.2 (22.49 KB, application/vnd.oasis.opendocument.text)
2023-03-11 10:50 UTC, Clarc
Details
Video of flickering bug (2.26 MB, video/mp4)
2023-03-11 10:54 UTC, Clarc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clarc 2020-10-08 19:42:06 UTC
Created attachment 166202 [details]
Bug-Screenshot

Let me just explain how to reproduce, this is the way I can accomplish it:
1. Make a new Document
2. Create a new Paragraph-style which uses Drop Caps.
3. Set this new style and "Textbody" to use "Justified Flow"
4. Create two paragraphs:
   - One short (Drop Caps-) one that starts with a small d (for example "daf"). The d should be underlined by the DropCaps-gray now.
   - Below that, a longer (Textbody-) paragraph, that starts with a big D.
5. Put the cursor at the beginning of the second paragraph, before the D.
6. Click [Backspace] until you have deleted the small d; the capital D now is the Drop-Cap-letter.
7. Observe the bug: On the right side, the Text should protrude further than usually possible. (See attatched screenshot)

SOME LETTERS DON'T SHOW THIS BEHAVIOR. D just is a good one to show the bug. There was some other letter-combination that actually makes the text go less far than it's supposed to... I just forgot which letters they were.



System-Info:
Version: 7.0.1.2
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-AT (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded
Comment 1 Clarc 2020-10-09 16:23:27 UTC
I couldn't reproduce this on Windows... Could other people post their results?
Comment 2 Dieter 2021-01-03 16:18:24 UTC
Created attachment 168645 [details]
Screenshot showing the bug

I could reproduce it with

Version:
7.2.0.0.alpha0+ (x64)
Build ID: c0eee433e079d8e3413f4691607e075b99af92b0
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

See attachment: "not" in the third line isn't fully within text borders

I also tested with a different text, but couldn't repoduce.
Comment 3 QA Administrators 2023-01-04 03:19:24 UTC Comment hidden (obsolete)
Comment 4 Dieter 2023-01-07 16:36:48 UTC
Created attachment 184517 [details]
test file

I could no longe reproduce the problem with attached test file. Clarc, is it possible for you? If this is the case, please provide a sample file.
=> NEEDINFO
Comment 5 Clarc 2023-03-11 10:49:54 UTC
It still works for me, though it behaves slightly differently. Now the bug only flickers for a split second, before disappearing. See the video I'll attach in a minute. I'll also attach the file it worked with for me.

@Dieter: I noticed in the test file you provided you didn't use "D"s as described in the very first comment. Maybe this was the reason for it not showing anymore?

Version Info:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded
Comment 6 Clarc 2023-03-11 10:50:45 UTC
Created attachment 185905 [details]
WorkingFile 7.5.1.2
Comment 7 Clarc 2023-03-11 10:54:52 UTC
Created attachment 185906 [details]
Video of flickering bug
Comment 8 Dieter 2023-03-11 17:28:31 UTC
I can still reproduce it and also with my test file in comment 4 (attachment 184517 [details])

Steps:
1. Open attachment 184517 [details]
2. Place cursor before second word ("paragraphs")
3. Delete characters until "P" is drop cap

Actual result:
Text in second and third line is outside text margins
Comment 9 Kira Tubo 2023-10-12 21:40:37 UTC
This is reproducible in Windows on master and 3.3. 

Steps:
1. Open attachment 184517 [details]
2. Place cursor before second word ("paragraphs")
3. Backspace characters individually until "P" is drop cap (at this point, it looks like everything is OK on Windows)
4. Scroll down until you no longer see the text in the document
5. Scroll back up

Result: text on lines 2 and 3 extend past margins. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1ec2e39cf4d5fe0a592bc783fd8bcdc4345c8cbd
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