freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Dark pixels at the edge of rendered glyphs.


From: Werner LEMBERG
Subject: Re: [ft] Dark pixels at the edge of rendered glyphs.
Date: Thu, 13 Apr 2017 09:26:45 +0200 (CEST)

> Rendered glyphs passed to OpenGL as a texture and then "properly"
> blended with a background color show dark pixels on the edges.
> [...]

I'm no expert w.r.t. blending, but I think you get these artifacts if
you don't do the blending in linear color space.  In other words, you
have to undo gamma, apply the blending, then apply gamma again.

Look, for example, at this page

  http://ninedegreesbelow.com/photography/linear-gamma-blur-normal-blend.html


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]