Page 2 of 2

Re: Get RGBA from ColorRequester?

Posted: Fri Feb 26, 2016 7:42 pm
by freak
Keya wrote:DrawVectorParagraph() vs DrawVectorText(), Arial Bold 16 @ Win32, zoomed in. Interesting differences! They both beat DrawText() though :D
Image
We had to turn off some font hinting options for DrawVectorText() as otherwise the width of the drawing output does not match what VectorTextWidth() returns (making that command pretty useless). DrawVectorParagraph() does not suffer from this problem because text is layed out so it fits a bounding box, so there was no reason to turn off these options there. This only affects the Windows version.

This is a tradeoff we had to make. Its not a bug.

Re: Get RGBA from ColorRequester?

Posted: Fri Feb 26, 2016 7:57 pm
by DoubleDutch
It's best with the option off (or at least optional) as if you are creating something to be (eventually) printed on a printer then it does not look right if cleartype is used. (black text on white gets a kind of brown/blue tint on the character edges rather than proper black and white)

Re: Get RGBA from ColorRequester?

Posted: Fri Feb 26, 2016 9:20 pm
by bbanelli
freak wrote:This is a tradeoff we had to make. Its not a bug.
Thanks for the clarification!

What about some fonts that won't display with Vector library (but work on Linux)?

Re: Get RGBA from ColorRequester?

Posted: Sat Feb 27, 2016 11:02 am
by Michael Vogel
heartbone wrote: Good demo. What's up with the -60 point size?
Look here...
heartbone wrote: Those color artifacts that you see are 100% the result of Microsoft® ClearType technology.
Maybe it's possible to control that by using TextRenderingHint (see here)

Re: Get RGBA from ColorRequester?

Posted: Sat Feb 27, 2016 12:52 pm
by DoubleDutch
"System.Drawing.Text.TextRenderingHint.AntiAliasGridFit"

Michael: Looks like a good option

Re: Get RGBA from ColorRequester?

Posted: Sat Feb 27, 2016 4:38 pm
by heartbone
Michael Vogel wrote:
heartbone wrote: Good demo. What's up with the -60 point size?
Look here...
Thanks for the link. There are so very many options.
heartbone wrote: Those color artifacts that you see are 100% the result of Microsoft® ClearType technology.
Maybe it's possible to control that by using TextRenderingHint (see here)
I'm confident there is some control somewhere.
DoubleDutch wrote:"System.Drawing.Text.TextRenderingHint.AntiAliasGridFit"

Michael: Looks like a good option
DoubleDutch: Looks like it's time for a separate thread?