Get RGBA from ColorRequester?

Everything else that doesn't fall into one of the other PB categories.
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Get RGBA from ColorRequester?

Post 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.
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Get RGBA from ColorRequester?

Post 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)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: Get RGBA from ColorRequester?

Post 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)?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
Michael Vogel
Addict
Addict
Posts: 2810
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Get RGBA from ColorRequester?

Post 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)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Get RGBA from ColorRequester?

Post by DoubleDutch »

"System.Drawing.Text.TextRenderingHint.AntiAliasGridFit"

Michael: Looks like a good option
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Get RGBA from ColorRequester?

Post 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?
Keep it BASIC.
Post Reply