等宽字体 - 不是真的等宽字体? [英] Monospace Font - Not really Monospace?
问题描述
这似乎是我在Gedit中使用 JavaScript 时发现的一个错误(当您将字体从Ubuntu mono更改为Monospace)和Geany时。我有一个右边距设置为80个字符,但是当我键入对象
,原型
或任何其他键字加上程序,它增加了一些字母间距,抛出间距略微。
因此,我有一行声明 Object
这是79个字符,但似乎是81.5个字符。有人可以告诉我如何解决这个问题吗?它是一个文本编辑器设置?这是字体本身的问题吗?
这可能是因为您的默认等宽字体没有原生的粗体样式。只要改变字体。我建议,因为你在Linux,DejaVu Sans Mono或Liberation Mono;他们会工作得很好。
此外,您现在认为等宽字体将具有原生的粗体风格
如果你使用的是Ubuntu,你可以下载 Unsettings < a>并更改默认的等宽字体,所以当你打开具有monospace字体的程序时,它就是你选择的那个字体。 顺便说一下,这不是唯一的到Linux。检查Windows 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 Because of this, I have a line declaring 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 这篇关于等宽字体 - 不是真的等宽字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
cmd
...上的默认等宽字体... Object
, prototype
or any other key word bolded by the program, It adds some letter spacing that throws off the spacing just slightly.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?
cmd
...