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

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

$
0
0
It is possibly a difference in the font point size, or transparency?

I'm using these styles:
        builder.AppendLine("div.date { font-family:\"Apple Garamond\"; font-size:13px; color:").Append(rgb).Append("; }");
        builder.AppendLine("div.title { font-family:\"Moderne Fraktur\"; font-size:20px; color:").Append(rgb).Append("; }");
        builder.AppendLine("div.body { font-family:\"Times New Roman\"; font-size:13px; color:black; }")
So those sizes are much smaller.

Second, the HtmlPanel has transparency enabled ( BackColor = Color.Transparent;). The background also has an image as you can see in he original graphic. So the text is being rendered over that other image.

Third, this I the GUI / GDI init stuff I'm using:
        // standard visual stuff
        System.Windows.Forms.Application.EnableVisualStyles();
        System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(true);
I can't think off hand anything else that would cause a discrepancy? And either way, the same exact code and font files shows the fonts rendering perfectly with 1.4.1, and not with 1.4.14, so by definition something changed between those two. We just need to figure out what. ;-)

Thanks,
Ryan

Viewing all articles
Browse latest Browse all 693

Trending Articles