Bug 405273 - Changing the Schema resets the user defined font size to the default font size
Summary: Changing the Schema resets the user defined font size to the default font size
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.55.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-09 17:43 UTC by Richard Bowen
Modified: 2020-12-20 19:24 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 Richard Bowen 2019-03-09 17:43:44 UTC
SUMMARY
Changing the Kate Schema changes the custom font size (for example 11) to to the Kate's default font size (9). This happens both from the View > Schema menu entry, and when it is set globally in settings.

STEPS TO REPRODUCE
1. Click Ctrl++/Ctrl+- or use the global settings dialog (Configure Kate...) to increase/decrease the font size. It should be something other than the default. 11 is a noticeable size.
2. Change the Kate schema from the View > Schema menu or from the globally from the Configure Kate settings dialog. 
3. Observe the font size revert to the default font size.

OBSERVED RESULT
The custom, user set font size gets changed to the default font size when a Schema is changed. 

EXPECTED RESULT
Whenever a schema is changed, it should respect the user defined settings, namely the font size in this case.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Linux archlinux 5.0.0-arch1-1-ARCH
(available in About System)
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0 
Qt Version: 5.12.1

ADDITIONAL INFORMATION
I noticed that for the default schema, the change in font size change is registered for that schema only. Are the schemas that decoupled that they don't share application data such as the font size set by the user?
Comment 1 Richard Bowen 2019-03-10 17:34:04 UTC
I'm using Plasma on Wayland.
Comment 2 Ahmad Samir 2019-06-20 09:52:42 UTC
When you select a color scheme in ktexteditor/kate, it'll use the font size set for that scheme (you can set the font size per scheme from the config dialog), if no font is set in the scheme itself it falls back to the font set in KDE settings. The problem with the approach you're proposing is that changing the color scheme won't respect the font size the user has set for that particular scheme...
Comment 3 Bug Janitor Service 2019-07-05 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Ahmad Samir 2019-07-11 21:11:13 UTC
It seems I set this to NEEDSINFO by mistake, I was just stating my opinion/thoughts on the bug reported here...
Comment 5 Christoph Cullmann 2020-12-20 19:24:48 UTC
This got fixed by the change that a theme no longer contains the font.
(KDE Frameworks 5.76)