rubjo / victor-mono

A free programming font with cursive italics and ligatures. Donations welcome ❤️
https://rubjo.github.io/victor-mono
SIL Open Font License 1.1
3.29k stars 44 forks source link

Question | How can I use the cursive font in comments ? #115

Closed me-nkr closed 3 years ago

rubjo commented 3 years ago

Hi there, thanks for trying the font. 🙂 What code editor do you use?

me-nkr commented 3 years ago

VS Code

rubjo commented 3 years ago

You have to use a theme that has rules for italicising certain parts of the code (like eg. comments). Try installing this one:

https://marketplace.visualstudio.com/items?itemName=rubjo.ultimate-dark-neo

me-nkr commented 3 years ago

I was able to italicize comments using textMate rules under tokenColors. The problem is that it's not cursive

rubjo commented 3 years ago

So it’s oblique, not cursive? Can you verify that you have the italic styles of the font installed (ie. do they show up in any other app?)

me-nkr commented 3 years ago

I'm using victor mono medium

me-nkr commented 3 years ago

Earlier I was using 'Victor Mono, Medium', which didn't work but using 'Victor Mono' worked. But the font is too thin for me, and I want a bit bolder font.

rubjo commented 3 years ago

What operating system do you use? And again, does italic work in other apps for all weights?

If not, there are probably font files you haven’t installed (like the Medium Italic one you mention doesn’t work).

me-nkr commented 3 years ago

I'm using ubuntu 20.04 and I was able to get cursive comments

I have installed regular, medium and medium italic

rubjo commented 3 years ago

Can you list the Victor Mono font files in your ~/.fonts folder (or /usr/local/share/fonts, if that’s where you put them)?

Again, in a different app, like a word processor, can you select Victor Mono Medium and get true italics?

me-nkr commented 3 years ago

Can you list the Victor Mono font files in your ~/.fonts folder (or /usr/local/share/fonts, if that’s where you put them)?

NO

Again, in a different app, like a word processor, can you select Victor Mono Medium and get true italics?

Yes

I was able to get the cursive text in vscode too. it's just the font is not bold enough to me.

rubjo commented 3 years ago

Ok, in that case, couldn’t you just install all files and use the bold weight?

me-nkr commented 3 years ago

is it as simple as installing the bold font or is there any tweaking to be done in vscode ?

rubjo commented 3 years ago

Install the weight(s) you want, then set the desired font weight in VS Code.