You are not logged in.
Hello,
since the update of kate package ( text editor for plasma 5, a kde software ) I notice a weird bug :
when I type the underscore character ( _ ) then I don't see it in kate, the underscore character is not displayed,
to see it I need to insert a line break in kate,
version of kate package : 17.12.2-1,
language of my plasma 5/kde installation : french,
how can you explain this bug ?
thanks
Offline
Have you tried changing the font?
Offline
yes the workaround is to change the default font to another font ( like "liberation mono" ),
the default setting was "monospace", with "monospace" I don't see the underscore
Offline
What font do you have configured for that family?
Offline
I don't understand your question, is it really possible to configure the "monospace" font ?
the default setting in kate is "monospace", I don't know how to configure it,
but I use a fontconfig file :
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<!-- Reject bitmap fonts -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable">
<bool>false</bool>
</patelt>
</pattern>
</rejectfont>
</selectfont>
<dir>~/.fonts</dir>
<alias binding="same">
<family>Helvetica</family>
<accept>
<family>Liberation Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Times</family>
<accept>
<family>Liberation Serif</family>
</accept>
</alias>
</fontconfig>
Offline
Paste the output:
fc-match monospace
Offline
here is the output :
$ fc-match monospace
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
Offline
And do you have that font on your system?
Offline
the file "/usr/share/fonts/TTF/VeraMono.ttf" is present on my system
Last edited by Potomac (2018-02-18 05:54:42)
Offline
this font belongs to ttf-bitstream-vera package
Offline
Well, if it doesn't render an underscore properly, change it to something that does. Monospace isn't a font, it is a class of fonts, yours is defaulting to Vera.
Offline
Can you confirm you have the same bug when you try in kate with "monospace" and "Bitstream Vera Sans Mono Roman" ? ( if you have kate in your system )
I want to know if this bug is specific to my system
Offline
I don't use kate. But if it works with DejaVu mono, then it sounds more like a problem with Vera, or your font config.
Offline
I tried and it doesn't work with "dejavu mono", the underscore is not visible until I insert a line break,
I tried to disable my personal font config file and I have the same problem
Last edited by Potomac (2018-02-18 06:29:14)
Offline
The linebreak thing suggests that kate doesn't render the (entire) descent of the font - or that Vera/DejaVu render the underscore outside the announced descent.
This could be an off-by-one error or confusion of base and descent and em (on rather kate's part)
Check whether other glyphs change their appearance as well (make two screenshots, one w/ and one w/o a trailing newline and overlay them) - "qpjy_" are prone to be affected by such bug.
Offline
here is the screenshot :
the first screenshot :
- I use the "hack" font, the bottom of the character is not visible
the second screenshot :
- I still use the "hack font" but I have inserted a line break : the bottom of the character is now visible,
I use the "oxygen" theme for plasma 5, maybe this theme has a bug ?
edit : I tried with the "breeze" theme : I still have the bug
Last edited by Potomac (2018-02-18 16:15:18)
Offline
one important thing : the bug occurs when the font size is lesser than "12",
for example with size 9 : the bottom of the character is not rendered
Offline
Hi
I use the breeze theme for plasma 5 and I have the same bug with :
- Bitstream Vera Sans Mono Roman
- DejaVu Sans Mono Book
But the display of " _ " is correct with :
- Droid Sans Mono Regular
- Liberation Mono Regular
- Linux Libertine Mono Mono
- Noto Mono Regular
A+
Offline
jean_no : what graphic card do you have ?
a radeon ?
here are my font settings in plasma :
https://reho.st/self/dfe5a0afb7f7ad9253 … 178e51.jpg
Last edited by Potomac (2018-02-18 17:09:49)
Offline
Tha't not a graphics card issue, kate simply miscalculates the line height.
=> File a bug upstream: https://bugs.kde.org/
Edit: could be a HiDPI issue? Try to enforce 96DPI
Last edited by seth (2018-02-18 16:47:57)
Offline
I tried to force DPI to 96 : no change, the bug is still here,
I tried also to connect with a new user and an empty home profile in order to have the default settings for plasma 5 and kate : no change, the bug is still here,
I don't use "testing repos", all my packages are up to date
Last edited by Potomac (2018-02-18 17:13:51)
Offline
I created a bug report :
Offline