rzyns / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Font rendering switches randomly #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The problem occurs randomly

What is the expected output? What do you see instead?

Sometimes the fonts rendered are thick (see Thick fonts.jpg) and sometimes they 
are thin (Thin fonts.jpg). It seems to be unrelated to any other configurations

What version of MacVim and OS X are you using?

Snapshot 58, 10.7.1

Please provide any additional information below.

This problem has existed for a while. I've checked with snapshot 62 and the 
problem still occurs. Personally I prefer the thick fonts so it would be nice 
to have a consistent look.

Original issue reported on code.google.com by s.r.walk...@gmail.com on 21 Sep 2011 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
Check the output of ":set anti?" in the two different windows.  Are they the 
same?  I'm guessing not, which means you are setting this option in one window 
but not the other.

Did you go through the troubleshooting guide as it asked you to do before 
reporting a new issue?

Original comment by bjorn.winckler@gmail.com on 21 Sep 2011 at 12:54

GoogleCodeExporter commented 9 years ago
The two windows are not open simultaneously, they are one after the other. 
Sometimes when I open a file I get the thick text and other times I get the 
thin text. 

:set anti? tells me "antialias" in both cases, and setting it to noanti shows 
clearly non-antialiased text. I am using Monaco size 12 in both cases.

Yes I did go through the troubleshooting and FAQ and all of the wiki pages on 
the github project page. I have tested startup files (both bash* and vim*) and 
resetting preferences.

Original comment by s.r.walk...@gmail.com on 21 Sep 2011 at 3:29

GoogleCodeExporter commented 9 years ago
I've just investigated and it seems the text is thick when an external monitor 
is *not* plugged in. 

I tested this by unplugging my external display and starting macvim - the font 
was thick. I then closed macvim, plugged in the external monitor and started 
macvim again - the font was thin. 

Original comment by s.r.walk...@gmail.com on 21 Sep 2011 at 5:21

GoogleCodeExporter commented 9 years ago
I see.  The problem is that your external monitor does not enable font 
smoothing properly.  I have the same problem with my external monitor and the 
solution is to open Terminal and enter (NOTE that this will affect all 
applications!):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

See [1] for more information.

[1] http://blog.jjgod.org/2009/08/18/snow-leopard-vs-dell-lcd-displays/

Original comment by bjorn.winckler@gmail.com on 21 Sep 2011 at 5:59

GoogleCodeExporter commented 9 years ago
Thank you this was indeed the problem. Sorry for being misleading!

Original comment by s.r.walk...@gmail.com on 22 Sep 2011 at 9:22