tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.66k stars 3.09k forks source link

RStudio: hyphenated arrows of n-length not working #1044

Open Axel-Shark opened 4 years ago

Axel-Shark commented 4 years ago

I'm using the current version of RStudio and notice that the only hyphenated arrow combination is <-; <-- and <--- do not render as arrows of length n-hyphens.

I noticed this with Fira Code 3. I just wiped all existing Fira font files and did a clean instead of Fira Code 4. Same result.

Should this be activated by default or do I need to a tweak a setting somewhere?

tonsky commented 4 years ago

Should work out of the box. But syntax highlight might be getting in the way. Try on a plaintext file or inside a comment

RubenVerg commented 4 years ago

same here, on vscode.

RubenVerg commented 4 years ago

except that <-- works

Axel-Shark commented 4 years ago

Fair play. This is using Fira Code light (v4) on Windows 10. Notepad: these are extended with n-length: <-, <--, <--- R Studio: they also appear with n-length in R Notebook and R Markdown. In R Script and R Console, only <- has ligatures, where anything longer shows up as unconnected hyphens.

In R Studio, as far as I know, there's only a single font parameter which is set globally. The font face in R Script and R Console do look like Fira Code light, so perhaps it's an issue with how Script and Console treat ligatures.