On 15/03/2013 05:40, mattn wrote:
attached patch adds a new field called 'a' into guifont spec for
gui_win32. This allows Windows user to control font antialiasing style
in same fashion as Putty or Mintty does.
As this is my first Vim patch and also my first patch for MS Windows
related code I am not sure about MS SDK macro usage policy, precisely
if I can use WINVER check directly in case of CLEARTYPE_QUALITY
constant (which was introduced in 7.0A). If it is not good enough just
tell me how to do it properly and I will rework my patch.

Nice. It's working good for me. One thing, for about checking WINVER, I prefer 
to #ifdef CLEARTYPE_QUALITY. This make be possible to work on WindowsXP.

You must have special build runes. ;-) WinGDI.h checks for _WIN32_WINNT_WINXP as you say but the supplied Windows makefiles set WINVER to 0x0400 or 0x0500 which map to NT4 and 2K, so the cleartype flag will not be compiled in by default.

If Bram wants to keep VIM as backwardly compatible on Windows as possible (i.e.back to NT4 and 2K) then we can't support cleartype out of the box - these will have to be custom builds for more recent versions of Windows.

(FWIW the cgwin/ming makefiles specify 0x0500 and borland/ms makefiles specify 0x0400 - this means there is a subtle difference in modify_fname() in eval.c depending on the compiler used, is that really intended? Hmm, if_ruby.c blats it for recent compilers, a workaround due to this problem? It's all getting messy here.)

static struct antialiasing_pair
antialiasing_pairs[] =
{
     {"DEFAULT",              DEFAULT_QUALITY},
     {"NONE",         NONANTIALIASED_QUALITY},
     {"ANTIALIASED",  ANTIALIASED_QUALITY},
#ifdef CLEARTYPE_QUALITY
     {"CLEARTYPE",    CLEARTYPE_QUALITY},
#endif
     {NULL,             0}
};



Mike
--
Dragon, a lizard with indigestion.

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui