Bug 356110

Summary: Line spacing not adjusted to font in printouts
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Qianli Ma <maql.nju>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Qianli Ma 2015-11-30 11:32:32 UTC
When printing a document with a modified schema (different font typeface or size than the default), the line spacing is not adjusted to the font. This can result overlapped text when printing with a large font size and very large line spacing with a small font size.


Reproducible: Always

Steps to Reproduce:
1. Modify the printing schema in Kwrite/Kate to use a larger font size, e.g. 18 pt.
2. Print a document (to a PDF file).


Actual Results:  
The line spacing in the resulting document is too small, resulting overlapped text.


Expected Results:  
Adjust the line spacing according to the font settings

The problem might be related to Bug 344976. After the git commit 7d824fd the font and color schema are honored but line spacing are still fixed.
Comment 1 Dominik Haumann 2016-03-24 17:10:11 UTC
Git commit c1cba0174025fe8f2779ed30ce859b05914eba4b by Dominik Haumann.
Committed on 24/03/2016 at 17:10.
Pushed by dhaumann into branch 'master'.

printing: use font size from selected printing schema

M  +21   -7    src/printing/printpainter.cpp
M  +4    -5    src/printing/printpainter.h

http://commits.kde.org/ktexteditor/c1cba0174025fe8f2779ed30ce859b05914eba4b
Comment 2 Dominik Haumann 2016-03-24 17:10:42 UTC
Fixed for the next Frameworks release - thanks for good report :)