[Lazarus] TFPImageCanvas and TFreeTypeFont colors

Michael Van Canneyt michael at freepascal.org
Fri May 10 20:34:00 CEST 2013



On Fri, 10 May 2013, Leonardo M. Ramé wrote:

> Hi, I'm writing text over TFPImageCanvas using a TFreeTypeFont, and I
> noted some times, the text contains wrong colors around the pixels of
> the text.
>
> I've attached an image to show the problem. As you can see, the text
> over light gray and white is adding red dots, that doesn't have to be
> there.
>
> The resulting image is an TFPMemoryImage composed of two TFPImageCanvas
> one containing the image and a 2nd one containing the text.
>
> How can I avoid those red dots?.

Are you using antialiasing ?
If so, try switching it off.

Michael.


More information about the Lazarus mailing list