Bug 442933

Summary: Font doesn't change when changing the filetype
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Safa Alfulaij <safa1996alfulaij>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: jpmbatrina01, nate
Priority: NOR    
Version First Reported In: 5.81.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Safa Alfulaij 2021-09-25 09:14:58 UTC
Following https://bugs.kde.org/show_bug.cgi?id=435372

I set a custom font for "Normal" filetype.
When I change the filetype from the status bar, syntax highlighting changes, but the font doesn't change.

Using:
Kate 21.04.0
KDE Frameworks 5.81.0
Qt 5.15.2 (built against 5.15.2)
On Windows 10
Comment 1 Jan Paul Batrina 2021-09-25 11:08:34 UTC
Confirmed with kate/ktexteditor built from master.

Additionally, unset variables are not reset to default. For example, if you add `background-color #ff0000;` to the variable line of a custom filetype, switch to that filetype, then switch back to the previous filetype, the background color will still stay red. This bug should probably be in a different bug report, but I'm mentioning it here because it might be related. Will update after I investigate a bit more.