oni icon indicating copy to clipboard operation
oni copied to clipboard

Some problems with fonts

Open tunnckoCore opened this issue 8 years ago • 5 comments

Heya! Awesome project! Wish it best forward :)

I'm not some vim guru, but anyway. I just installed it on ArchLinux and added few simple configs on .oni/config.js.

module.exports = {
    "editor.fontFamily": "Noto Mono, Noto Sans",
    "editor.fontSize": "14px"
};

It seems it applies the font and size, but the whole thing does looks good.

2018-03-26-06 37 59_1280x1024_scrot

There's some weird visual space. All this visual mess was even with the defaults, before applying my system font. Any ideas?

tunnckoCore avatar Mar 26 '18 03:03 tunnckoCore

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Mar 26 '18 03:03 oni-bot

@olstenlarck this error unfortunately occurs if the string for fonts you input is somehow invalid, I think in your case that either the font name is invalid (as there are two fonts, the second is a fallback? unfortunately we currently dont support fallbacks I would try each separately and see if it works.

Another potential cause is the name your OS uses for the font might not be what you think here's an issue where we have a solution (onivim/oni/issues/1059), I need to add that to the documentation

akinsho avatar Mar 26 '18 10:03 akinsho

As I said, it was the same thing even with the defaults, so it's not my fault.

As about the name, that's it i used it everywhere for years.

2018-03-26-16 42 36_1280x1024_scrot

with defaults.

tunnckoCore avatar Mar 26 '18 13:03 tunnckoCore

@olstenlarck Do you still experience this issue?

badosu avatar May 21 '18 05:05 badosu

I see this issue on Windows when attempting to use Terminus or Terminus (TTF) for Windows as the value of editor.fontFamily. Text either falls back to Times New Roman or renders with that exact type of spacing error.

tidux avatar Jul 03 '18 21:07 tidux