Bug 371077

Summary: Unable to get the original text size after enlarging/shrinking it
Product: [Applications] kate Reporter: Antonio Orefice <kokoko3k>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR Keywords: junior-jobs
Version: 16.08   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Antonio Orefice 2016-10-18 12:40:10 UTC
When using a fractional point size as default value, enlarging it and shrinking it (ctrl++, ctrl+-) will not return to the original value.

Reproducible: Always

Steps to Reproduce:
1. Select a font (eg: 10)
2. Set a fractional point size that visually differs from the lower and upper integers (eg: 10,5)
3. return to the editor and write something
4. enlarge the font (ctrl++)
5. shrink the font (ctrl+-)


Actual Results:  
Notice that the font is not rendered in the original size (eg 10,5)

Expected Results:  
The font to be rendered in the original size (eg 10,5)
Comment 1 Christoph Feck 2016-10-19 04:08:57 UTC
Should use (set)PointSizeF instead.
Comment 2 Nate Graham 2018-06-29 20:46:13 UTC
This is working for me with KDE Frameworks 5.47 and Kate 18.04.2.