You are not logged in.

#1 2018-02-18 05:19:20

Potomac
Member
Registered: 2011-12-25
Posts: 528

[kate] underscore character is not visible in kate

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

#2 2018-02-18 05:20:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

Have you tried changing the font?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-02-18 05:30:39

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#4 2018-02-18 05:34:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

What font do you have configured for that family?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-02-18 05:37:51

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#6 2018-02-18 05:47:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

Paste the output:

fc-match monospace

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2018-02-18 05:49:12

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

here is the output :

$ fc-match monospace
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"

Offline

#8 2018-02-18 05:52:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

And do you have that font on your system?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2018-02-18 05:54:26

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

the file "/usr/share/fonts/TTF/VeraMono.ttf" is present on my system

Last edited by Potomac (2018-02-18 05:54:42)

Offline

#10 2018-02-18 05:56:22

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

this font belongs to ttf-bitstream-vera package

Offline

#11 2018-02-18 05:57:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2018-02-18 06:01:22

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#13 2018-02-18 06:25:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [kate] underscore character is not visible in kate

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2018-02-18 06:27:37

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#15 2018-02-18 08:20:05

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [kate] underscore character is not visible in kate

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

#16 2018-02-18 16:06:36

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

here is the screenshot :

5afc4d0abaffcddf04bca19703b9bf01e31316c1.png

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

#17 2018-02-18 16:19:01

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#18 2018-02-18 16:25:34

jean_no
Member
Registered: 2007-09-18
Posts: 48

Re: [kate] underscore character is not visible in kate

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

#19 2018-02-18 16:45:35

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#20 2018-02-18 16:46:51

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [kate] underscore character is not visible in kate

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

#21 2018-02-18 17:13:21

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

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

#22 2018-02-18 17:18:15

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: [kate] underscore character is not visible in kate

Offline

Board footer

Powered by FluxBB