Bug 501414 - Kate does not print what is shown in print preview
Summary: Kate does not print what is shown in print preview
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 23.08.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-12 16:13 UTC by goo
Modified: 2025-04-14 16:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description goo 2025-03-12 16:13:49 UTC
SUMMARY
the print preview in kate shows exactly what is on the screen and exactly what i want, but the what comes out of the printer does not match... it uses a proportional font instead of monospace.

STEPS TO REPRODUCE
1. open text document in kate
2. go to print preview and confirm the font and format are what is expected
3. print

OBSERVED RESULT
printed page uses a proportional font instead of the monospace font shown in the print preview and on screen.

EXPECTED RESULT
printed page should match what is shown in the print preview.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.11.0-19-generic (64-bit)
Graphics Platform: X11
Processors: 28 × Intel® Core™ i7-14700K
Memory: 62.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6800
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D27
System Version: 1.0

ADDITIONAL INFORMATION

relevant discussion and workaround
https://discuss.kde.org/t/kate-does-not-print-what-is-shown-in-print-preview/31365

printer: Brother HL-5340D series using the default driver brother hl5340d - cups=gutenprint v5.3.4
Comment 1 Christoph Cullmann 2025-03-13 21:10:52 UTC
We did fix a few things in the printing in the last year, could you try a more recent version?
Comment 2 Bug Janitor Service 2025-03-28 03:46:51 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 goo 2025-03-28 14:27:04 UTC
unfortunately i cannot try a more recent version as this is the only version i have access to from my distro and i'm not willing to reinstall a different distro over this bug.

i will just hope it is resolved and file a new bug report if it ever comes up again.... however since i plan on sticking with kubuntu LTS, my fear is the answer then will be the same as the answer now and nothing will change since i will never be on the bleeding edge of the versions.

filing bug reports was my way of giving back to the community, but if LTS is always going to be behind the curve then what's the point?
Comment 4 Bug Janitor Service 2025-04-12 03:47:01 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 goo 2025-04-14 01:21:14 UTC
found a work around: do NOT use ctrl + P

go to 

File > print/export > print preview > print(button)  > properties > advanced > imagetype: text

*every time* and it will print out as shown in the preview window.
Comment 6 Waqar Ahmed 2025-04-14 05:18:28 UTC
> however since i plan on sticking with kubuntu LTS

You can try AppImage or Snap or Flatpak. We have nightly images available for AppImages.
Comment 7 goo 2025-04-14 14:14:24 UTC
ok, can confirm the appimage version 25.07.70 has the same issue.

open a file, screen shows mono spaced font, hit ctrl-P 
printer outputs proportional font

trying from file > print/export > print preview...
shows mono spaced font just like the main window
then choosing the print button seems to work, as mono spaced font is output at the printer
checking the properties it defaults to "mixed text and graphics" just like my LTS version and i didn't have to change it to "text only" for it to print in mono space font.

so i guess that's something.

would still be nice if ctrl-p just worked tho
Comment 8 Christoph Cullmann 2025-04-14 16:32:28 UTC
Ok, that is some interesting insight. Will take a look, if one way works and the other not that should be fixable.