> 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.

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

-- 
-- 
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