https://bugs.kde.org/show_bug.cgi?id=465526

            Bug ID: 465526
           Summary: after printing emoji to pdf, horizontal character
                    spacing is borked until restarting kate
    Classification: Applications
           Product: kate
           Version: 22.08.2
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: part
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kdeb...@toeai.com
  Target Milestone: ---

Created attachment 156115
  --> https://bugs.kde.org/attachment.cgi?id=156115&action=edit
Shows how it looks as you continue pasting smileys.  First is how it looks
immediately after print dialog closes.

SUMMARY
Printing an emoji to PDF causes the cursor and characters to be in wrong places
and often not show up.  Problem affects all open files and new documents until
you start a new kate process.

STEPS TO REPRODUCE
1. In a blank document, paste a smiley, i.e. 😊 (U+1F60A).
2. Press Ctrl+P or use menu File->Export->Print, and print the document to PDF
file.

OBSERVED RESULT
(Resulting PDF does not actually display the smiley, but that is not the bug
I'm reporting here.)
After print dialog closes, cursor will have moved to middle of the smiley
instead of being after it.  The position (line, col) doesn't change, but the
displayed position does.  If you continue pasting smileys, only every 4th
smiley appears, and the cursor advances slowly.  The characters are "there" in
theory (you could save them to a file), but not all of them show up.  At first,
I thought it was just superimposing them, but if you're pasting them with
various text in front, it's still only every 4th smiley that appears, however
it might not show any until the 3rd.  This is reproducible, but I've seen some
variation, e.g. 2 of every 4 show up, but so overlapped they almost look like
one.  Also, if before you printed the smiley, you had another open document
with a string of smileys, after the print dialog closes, these will all show
up, but extremely overlapped into one.

EXPECTED RESULT
Printing to PDF should not corrupt the behavior of Kate.

SOFTWARE/OS VERSIONS
Kubuntu 22.10
Kate 22.08.2
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
In the screenshots to follow, it may appear I have more characters entered than
I do, judging from the line:column indicator in the status bar.  This is only
because of bug 465305.  If you count each smiley twice, it all adds up, e.g.
cursor starts at 1, add "foobar" (6) and seven smileys (14) to get cursor at
column 21.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to