Vim 中奇怪的渲染错误(或功能?)
文字前面有时会出现小线条。在图片中,它们位于 +syntax/ 以及 swo 和 delmenu.vim 的右侧。
- 这是一个错误还是这些行意味着什么?
- 您以前发生过这种情况吗?
- 他们将来会变得更糟吗?
PS:我使用的是 Microsoft Windows XP SP2 AMD
alt text http://img97.imageshack .us/img97/7673/picpd.jpg
编辑:我将字体更改为Consolas,它们就消失了。有没有办法解决这个问题,同时仍然使用我最喜欢的字体 Monaco(并且不关闭 Cleartype)?
There are small lines appearing sometimes in front of words. In the pictures they are to the right of +syntax/ and swo and delmenu.vim
.
- Is this a bug or those lines mean something?
- Do this happened to you before?
- Would they get worse in the future?
PS: I'm using Microsoft Windows XP SP2 AMD
alt text http://img97.imageshack.us/img97/7673/picpd.jpg
EDIT: I change the font to Consolas and they disappeared. Is there a way to solve the problem while still using my favorite font, Monaco (and not turning off Cleartype)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是由cleartype 字体平滑引起的。
如果您为 gvim 使用固定字体,问题就会消失(.fon 文件)。 ttf 文件包含字体平滑信息,这些信息在 gvim 中会变得混乱。
fixedsys 渲染得很好。还有很多其他的也运行良好。
另一种方法是使用显示属性完全关闭字体平滑,但这会对所有其他应用程序产生不良影响。
This is caused by cleartype font smoothing.
If you use a fixed font for gvim the problem goes away (.fon files). ttf files contain font smoothing information which gets messed up in gvim.
fixedsys renders well. There are a bunch of other ones that also work well.
An alternative is to turn off font smoothing altogher using the display properties, but that will have undesirable effects on all other applications.
这确实看起来像是一个渲染错误。您应该向 gvim 团队报告。但您也不应该使用 jpeg 进行屏幕截图 - 压缩效果几乎不如 png,并且可能会在镜头中引入失真,就像这个一样。
This does indeed look like a rendering bug. You should report it to the gvim team. But you should also never use jpegs for screen shots - the compression doesn't work nearly as well as pngs, and could potentially introduce distortion in shots exactly like this one.
只是猜测,但这可能与您使用的字体有关。也许您可以尝试更改它以查看这些行是否仍然出现,或消失,或移动到其他行......
Just a guess, but it may be related to the font you are using. Maybe you could try to change it to see if these lines still appear, or disappear, or move to other lines ...