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

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

$
0
0
Yeah my SetCompatibleTextRendering should have no impact as I use no stock controls. Every control is either mine built from scratch and does it's own rendering, or HtmlPanel. As I suspexcted, changing it to false made no difference. It's holdover code from the prototype back when I used to still use some standard controls.

However, you said:
"TextRenderer" uses GDI text rendering, also setting "e.Graphics.TextRenderingHint" is for GDI+ it has no effect on "TextRenderer.DrawText".
That is simply not true, despite what the docs may say. Not setting the hint makes the label text look EXACTLY like your text. Exactly. TextRenderer.DrawText definitely is affected by this hint.

.Net 2.0 target runtime, FYI.

As I said before, if you aren't using this hint, and you are using TextRenderer.DrawText, then this quite possibly why it is not working.

I will go back to my modified 1.4.1 code and see if I added that hint by chance, and perhaps that is why it is working in my build...

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>