Bug 383665 - Keywords are not bold in most themes
Summary: Keywords are not bold in most themes
Status: RESOLVED DUPLICATE of bug 378523
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 17.04.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 384053 391040 394845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-18 12:21 UTC by d_tassos
Modified: 2018-06-15 11:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshots of how the bug manifests (92.69 KB, application/pdf)
2017-08-18 12:21 UTC, d_tassos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description d_tassos 2017-08-18 12:21:27 UTC
Created attachment 107348 [details]
screenshots of how the bug manifests

For some reason all of the sudden in most themes, even in the normal one I am using the most, keywords that used to be bold are not bold anymore although they are market as bold in configure - Kate > Fonts & Colors.

This despite it has worked before and the the current fonts I am using have bold variants for example Dejavu Sans Mono. When using for example Dejavu Sans then keywords become bold again.
Comment 1 Christoph Feck 2017-08-18 12:26:39 UTC
This could be a duplicate of bug 378523. Please check the font configuration files for occurences of style names, such as "Normal" or "Regular".
Comment 2 d_tassos 2017-08-30 06:13:04 UTC
(In reply to Christoph Feck from comment #1)
> This could be a duplicate of bug 378523. Please check the font configuration
> files for occurences of style names, such as "Normal" or "Regular".

Thanks for the reply and the suggestion.

I was uncertain though which font configuration files you referred to, so I did a cat|grep for Normal or Regular in all files that are in the /etc/fonts/, ~/.config/fontconfig/. However, there doesn't seem to be anything that is named Normal or Regular.

Had a look at the other bug report and it seems similar, might give it a try and remove everything font related from the .config/kdeglobals as suggested there and see if it changes anything.

Cheers
Comment 3 d_tassos 2017-08-30 07:49:43 UTC
I fixed it by changing the ~/.config/kateschemarc

In the line that defines the font to be used in a schema/theme e.g.

[mySchema]
Font=DejaVu Sans Mono,10,-1,5,50,0,0,0,0,0,Regular

I changed it to:

[mySchema]
Font=DejaVu Sans Mono,10,-1,5,50,0,0,0,0,0

and then it works. Why does does it have to be defined as Regular instead just of the font family which seems to be enough?

Cheers
Comment 4 d_tassos 2017-08-30 07:54:42 UTC
Sorry, an edit to the above comment. Since it is DejaVu the "Regular" should actually be "Book".
Comment 5 Christoph Feck 2017-08-30 20:48:11 UTC
Thanks for the investigation, so indeed a duplicate.

> Why does does it have to be defined as Regular instead just of the font family which seems to be enough?

Explained in the duplicate.

*** This bug has been marked as a duplicate of bug 378523 ***
Comment 6 Christoph Feck 2017-09-04 15:36:32 UTC
*** Bug 384053 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2018-03-12 04:03:53 UTC
*** Bug 391040 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2018-06-15 11:34:44 UTC
*** Bug 394845 has been marked as a duplicate of this bug. ***