Bug 344976 - Font and color schema is ignored when printing
Summary: Font and color schema is ignored when printing
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 351303 356852 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-09 14:34 UTC by Qianli Ma
Modified: 2016-04-06 11:05 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Qianli Ma 2015-03-09 14:34:29 UTC
When print (or print preview) a document defult fonts and colors are always used.  The schema in the layout tab of the print dialog is not applied.

This problem shows up both on Arch Linux and a fresh installation of Kubuntu Vivid Alpha 2.  The problem might be in KF5 KTextEditor component but I am not sure.

Reproducible: Always

Steps to Reproduce:
1. Modify any font and color schema in Kate or Kwrite
2. Print (or print to file) a document and chose the modified schema

Actual Results:  
The printed document (or PDF file) does not have the specified schema applied. The 12 point Monospace font is always used.

Expected Results:  
Print the document with user-specified font and color schema.

Priorior to the port to KF5 the printing function of Kate has been working properly.
Comment 1 F Hammer 2015-05-11 13:00:53 UTC
I have the same problem here!
Comment 2 artghio 2015-09-12 15:48:21 UTC
Same problem for me too.

$ uname -a
Linux debian-luca 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) x86_64 GNU/Linux

$ apt-cache policy kate
kate:
  Installed: 4:15.08.0-1
  Candidate: 4:15.08.0-1
  Version table:
 *** 4:15.08.0-1 0
        500 http://ftp.it.debian.org/debian/ unstable/main amd64 Packages

The status of this bug is "unconfirmed", how can I confirm it?
Comment 3 EMR_Kde 2015-10-07 16:33:55 UTC
[exr003@pcsdw29 ~]$ uname -a
Linux pcsdw29 4.1.7-200.fc22.i686+PAE #1 SMP Mon Sep 14 20:36:56 UTC 2015 i686 i686 i386 GNU/Linux
[exr003@pcsdw29 ~]$ rpm -qi kate
Name        : kate
Version     : 15.04.3
Release     : 1.fc22
Architecture: i686
Install Date: Mon Jul  6 13:58:46 2015
Group       : Unspecified
Size        : 2537366
License     : LGPLv2 and LGPLv2+ and GPLv2+
Signature   : RSA/SHA256, Fri Jul  3 04:49:55 2015, Key ID 11adc0948e1431d5
Source RPM  : kate-15.04.3-1.fc22.src.rpm
Build Date  : Thu Jul  2 11:55:48 2015
Build Host  : buildvm-05.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://projects.kde.org/projects/kde/applications/kate
Summary     : Advanced Text Editor
Description :
Advanced Text Editor.
Comment 4 Christoph Cullmann 2015-10-10 08:14:36 UTC
Git commit 7d824fd0b64a316e360243ab4641e1a8a47ee88e by Christoph Cullmann.
Committed on 10/10/2015 at 08:14.
Pushed by cullmann into branch 'master'.

CHANGELOG: Printing again honors the selected font & color schema

M  +1    -5    src/printing/printpainter.cpp
M  +5    -3    src/printing/printpainter.h

http://commits.kde.org/ktexteditor/7d824fd0b64a316e360243ab4641e1a8a47ee88e
Comment 5 Christoph Cullmann 2015-10-10 08:15:51 UTC
*** Bug 351303 has been marked as a duplicate of this bug. ***
Comment 6 Dominik Haumann 2016-04-06 11:05:58 UTC
*** Bug 356852 has been marked as a duplicate of this bug. ***