문제

This appears to be a bug that I've found using JavaScript in Gedit (when you change the font from "Ubuntu mono" to "Monospace") and Geany so far. I have a right margin set to 80 chars, but when I type Object, prototype or any other key word bolded by the program, It adds some letter spacing that throws off the spacing just slightly.

Because of this, I have a line declaring Object that's 79 characters, but appears to be 81.5 characters. Can someone advise me on how to fix this? Is it a Text Editor setting? Is it an issue with the font itself?

도움이 되었습니까?

해결책

It's probably because your default monospace font doesn't have a native bold style. Just change the font. I'd suggest since you're in Linux, DejaVu Sans Mono or Liberation Mono; they'll work just fine.

Also, you'd think monospace would have a native bold style by now

If you're in Ubuntu you can download Unsettings and change the default monospace font so when you open programs that have "monospace" as font it'll be the one you chose.

Btw, this is not unique to Linux. Check out the default monospace font on a Windows cmd...

다른 팁

In my case changing font didn't help. The solution was to select option Insert spaces instead of tabs in the Preferences/Editor.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top