Bug 384053 - Light font weight used for some tokens, cannot be changed
Summary: Light font weight used for some tokens, cannot be changed
Status: RESOLVED DUPLICATE of bug 383665
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.37.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-26 15:39 UTC by EP
Modified: 2017-09-04 15:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example1 (349.93 KB, image/png)
2017-08-26 15:39 UTC, EP
Details
example2 no bold for keywords (368.03 KB, image/png)
2017-08-27 16:52 UTC, EP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description EP 2017-08-26 15:39:52 UTC
Created attachment 107534 [details]
example1

This happens when the font used has a light weight variant (e.g. Roboto Mono, Source Code Pro). I don't know if it is supposed to be so, but I find it very hard to read and there is no way to change it in the settings.
Comment 1 Nate Graham 2017-08-27 14:07:33 UTC
Can you explain in more detail what the problem is? Are the variable names too light to read?
Comment 2 EP 2017-08-27 16:48:28 UTC
Some fonts may come in many different weights (https://en.wikipedia.org/wiki/Font#Weight). 
For some reason the editor chooses the light font weight for some tokens (variables, control flow keywords, object field access on the screenshot).
My settings are:
- Roboto Mono is the default monospace font (via fontconfig rules)
- KWrite:Fonts & Colors:Font:Monospace:Normal

While writing this I've found that if I set a different font via KWrite settings then everything will use the selected weight, even the tokens which should be bold (e.g. keywords). Looks like it may be related to this. Could it be that my font configuration breaks the text rendering somehow? Can someone try to reproduce this?
Comment 3 EP 2017-08-27 16:52:09 UTC
Created attachment 107546 [details]
example2 no bold for keywords
Comment 4 Nate Graham 2017-08-27 16:53:17 UTC
Thanks for the info.
Comment 5 Christoph Feck 2017-09-04 15:36:32 UTC

*** This bug has been marked as a duplicate of bug 383665 ***