[Top][All Lists]

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

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

From: R0b0t1
Subject: Re: [ft] Dark pixels at the edge of rendered glyphs.
Date: Thu, 13 Apr 2017 14:50:59 -0500

On Thu, Apr 13, 2017 at 2:26 AM, Werner LEMBERG <address@hidden> wrote:
>> 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

I really appreciate the link. That helps me narrow it down to the
blending mode. Unfortunately I'm not able to find any useful
information to follow that up with. I realize that it is almost
certainly not a FreeType2 issue at this point, but you seem to have a
better idea of where to go next than I do.

I tried referring to to
determine what the most commonly suggested OpenGL blending mode,
`GL_ONE_MINUS_SRC_ALPHA`, corresponds to, but was unable to figure it
out. I'm also not really sure what to call the blending operation in
what you gave me so that I can search for it.

A page 
suggested using GL_ONE but I did not see any change in my results when
using it. Better documentation references extensions which allow more
customization in the blending parameters but all of the suggested
options replicate what I am already experiencing

Some experimentation leads me to wonder if my desired result can even
be obtained because I see the same behavior in commercial software. In
the case of PowerShell it seems like the colors were selected to make
the blending artifacts, if they are that, less noticeable, as the
developers were unable to remove them.


reply via email to

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