Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

New Post: loss of font fidelity (missing ClearType?)

$
0
0
Our posts crossed...sorry I hadn't gotten the email notification of your post.

As far as differences, it could be lots of stuff. I do a lot of tricks to get transparency to with my Transparent Windows Forms and Controls library. And also some double-buffer stuff with compositing for performance and accuracy with the pseudo-transparency. In fact, now that I think about it, that might be it. This is in my main window form:
    protected override CreateParams CreateParams
    {
        get
        {
            CreateParams cp = base.CreateParams;

            // turn on form compositing (double buffering) if Vista or higher
            // we can't do this on XP due to GDI+ issue in that case
            OperatingSystem OS = Environment.OSVersion;
            if ((OS.Platform == PlatformID.Win32NT) && (OS.Version.Major >= 6))
            {
                cp.ExStyle |= Native.WS_EX_COMPOSITED;
            }

            return cp;
        }
    }
I'm guessing that when the window style is WS_EX_COMPOSITED, that GDI+ requires the hint in order to use ClearType!!!

That would certainly explain it...

Ryan

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>