# Can't see my underline char

**URL:** <https://discourse.nodered.org/t/cant-see-my-underline-char/26957>\
**Category:** General\
**Created:** [19 May 2020 23:19 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957 "2020-05-19T23:19:01Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 May 2020 12:07 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/21 "2020-05-23T12:07:08Z")

</div>

> [@ristomatti](#):
>
> if you want to try if this helps,

Quite happy for you to play around and see your efforts but will wait for any official change as this is hard-core stuff and needs core devs to decide if its VFM to do anything about them (either the underline one or the dialog not resizing OK)

Could you post pic of what it looks like after your mods?

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 12:18 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/22 "2020-05-23T12:18:19Z")

</div>

The code in the screenshot might look familiar from another thread. Things look a bit different as I'm using my yet-to-be-published theme **node-red-contrib-themes/solarized-dark-grey** but it only modifies the colors, not fonts for example.

Before:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7acb710291df22a43ae0f50bf49b27d92ba73967.png)

After:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/6/e6938816e8e6ed7e7d3d2d1a88abd3acffe701e4.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2020 12:59 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/23 "2020-05-23T12:59:39Z")

</div>

FYI

The problem seems to be related to the "DejaVu Sans Mono" font..  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/584f1e09b7e9c53dce80c107f0e2ad603514f329.png)  
If I remove each font 1 by one, its only when i remove "DejaVu Sans Mono" that it falls back to "Courier" that is looks correct...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79d94aa5883bdae1b8476ad97835de3abd222c1a.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/1407231adecb320eec847ac575c7d7c28497d31f.png)

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 13:01 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/24 "2020-05-23T13:01:28Z")

</div>

Nice finding! It just happens to be exactly the font I like to use. 🙄

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 13:04 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/25 "2020-05-23T13:04:33Z")

</div>

It's actually quite obvious if you look at my second screenshot. The underscore is lower down relative to other characters when compared to Courier.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 May 2020 13:11 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/26 "2020-05-23T13:11:46Z")

</div>

> [@Steve-Mcl](#):
>
> its only when i remove "DejaVu Sans Mono"

I presume that must have been added in sometime in the past to overcome some other issue to do with how things look on some other platform

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [23 May 2020 13:13 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/27 "2020-05-23T13:13:28Z")

</div>

Sounds like that’s it I’ve always had this issue with that font! Is there another widely available monospace font that can be used instead?  
DejaVu Sans Mono is present by default on most linux based distros.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2020 13:16 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/28 "2020-05-23T13:16:19Z")

</div>

oh yeah - well spotted.  
we have options - but I think ideally @knolleary & @dceejay might like to look at the options and make a fix in core css?

(sorry Nick and Dave for `@`ing you guys - this might be something of interest to put this one to bed - in core)?

To summarise - the `underscore` character is not visible in linux based chromium (ok in firefox in linux and chrome on windows)...

- removing (or replacing) "DejaVu Sans Mono" in [colors.scss](https://github.com/node-red/node-red/blob/ad78ce0eb641267d3242dacf8770addfca63091b/packages/node_modules/%40node-red/editor-client/src/sass/colors.scss#L19)  
or
- adding `line-height: 1` for editor specific elements

would seem to eradicate this.

If you would prefer we could raise an issue or a PR - please let us know.

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 13:18 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/29 "2020-05-23T13:18:26Z")

</div>

Worth noting that the CSS issue is very likely with ACE and not Node-RED.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2020 13:20 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/30 "2020-05-23T13:20:31Z")

</div>

agreed - this is evident when you look at built in help for any node (help html in the sidebar uses same fonts for monospaced code sections but doesnt have this issue) so thats why i said "for editor specific elements"

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [23 May 2020 13:51 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/31 "2020-05-23T13:51:04Z")

</div>

If you have a fix to propose you can raise a PR

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2020 13:53 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/32 "2020-05-23T13:53:20Z")

</div>

OK Nick, would that be on dev branch or new branch of dev or something else?

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 13:58 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/33 "2020-05-23T13:58:33Z")

</div>

What fix would it be? I don't like the idea of replacing DejaVu Sans with Courier.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2020 14:01 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/34 "2020-05-23T14:01:19Z")

</div>

I would say yours is the better option TBH.

Ideally, there would be something more fancy like if chromium+linux = true, set line-height: 1 but I dont know if/how to do that.

Any thoughts?

PS, feel free to raise the PR as it was your finding that probably suits this best (once Nick lets us know how he wants it presented)

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 14:05 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/35 "2020-05-23T14:05:29Z")

</div>

At least on Chrome it didn't change the appearance at all besides fixing the issue. If I set a bigger value the lines got cropped instead of getting taller. But yes, I can raise the PR for discussion a bit later today.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [23 May 2020 14:14 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/36 "2020-05-23T14:14:15Z")

</div>

As a fix, it can target master.

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [23 May 2020 15:51 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/37 "2020-05-23T15:51:26Z")

</div>

@knolleary [https://github.com/node-red/node-red/pull/2579](https://github.com/node-red/node-red/pull/2579)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 June 2020 15:51 UTC](https://discourse.nodered.org/t/cant-see-my-underline-char/26957/38 "2020-06-06T15:51:27Z")

</div>

Closed on 6 June 2020 15:51 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/cant-see-my-underline-char/26957.md?page=1)
