You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took a look to the Functions page and found this:
Being the first time I looked at Rust code, I assumed it was possible to define functions using a whitespace in the name.
When I realized it wasn't true, I tried to open a issue to correct the content of the code and replace the whitespaces in the functions for underscores, however, I noted that they were actually there, but not rendered.
font attribute
This is the default style for Ace blocks:
When supressing the font attribute in .ace_editor, the underscore renders properly:
Apparently, that's the problematic combination. If I only leave source-code-pro in the list of fonts to use, it defaults to serif:
'Source Code Pro'
If I replace 'source-code-pro' with 'Source Code Pro', it renders properly:
Proposed solutions
a. Replace 'source-code-pro' with 'Source Code Pro' with a script (since it's not provided and generated from ace.js script).
b. Add !important to code { font-family } in general.css
If needed or relevant, this is my environment:
OS: Manjaro 18.1.0
Chrome: 77.0.3865.90
The text was updated successfully, but these errors were encountered:
davidomarf
changed the title
Underscore in Ace Editor are not rendered with Ace default CSS
Underscores in Ace Editor are not rendered with Ace default CSS
Oct 8, 2019
I took a look to the Functions page and found this:
Being the first time I looked at Rust code, I assumed it was possible to define functions using a whitespace in the name.
When I realized it wasn't true, I tried to open a issue to correct the content of the code and replace the whitespaces in the functions for underscores, however, I noted that they were actually there, but not rendered.
font
attributeThis is the default style for Ace blocks:
When supressing the
font
attribute in.ace_editor
, the underscore renders properly:WhatFont reports that the font used is monospace:
However, when I force monospace to be the chosen font, it works properly:
I checked for the installed functions in my OS. This is the result:
'source-code-pro', monospace
Apparently, that's the problematic combination. If I only leave
source-code-pro
in the list of fonts to use, it defaults toserif
:'Source Code Pro'
If I replace
'source-code-pro'
with'Source Code Pro'
, it renders properly:Proposed solutions
a. Replace
'source-code-pro'
with'Source Code Pro'
with a script (since it's not provided and generated from ace.js script).b. Add
!important
tocode { font-family }
ingeneral.css
If needed or relevant, this is my environment:
OS: Manjaro 18.1.0
Chrome: 77.0.3865.90
The text was updated successfully, but these errors were encountered: