Bug 442933 - Font doesn't change when changing the filetype
Summary: Font doesn't change when changing the filetype
Status: CONFIRMED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.81.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-25 09:14 UTC by Safa Alfulaij
Modified: 2021-09-27 21:05 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 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.