Well, all I got so far is that you can set a flag for the font, that will override the system settings for antialiasing.
Unfortunatelly I got two problems. I cannot set those flags within managed code and if I set the font via Win32 Api the SyntaxEditor still uses his own font. So I guess I cannot do it externally.
//font = CreateFont(10, 0, 0, 0, FW_NORMAL, FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
// NONANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Consolas");
Font f = new System.Drawing.Font("MS Sans Serif", 10, FontStyle.Regular);
var font = f.ToHfont();
Win32.SendMessage(this.Handle, (int)WindowsMessages.WM_SETFONT, font, IntPtr.Zero);
If you could add an option that would force antialiasing, even if they are disabled due to the system settings, that would be great. Because thats what Visual Studio does and most of the modern fonts dont work without antialiasing.
[Modified 8 years ago]