[Pixman] Proposal for pixman's glyph rendering: alpha correction
Bill Spitzak
spitzak at gmail.com
Wed Mar 13 13:29:18 PDT 2013
I believe this is viable. The same rules can be used for anti-aliasing
shapes and lines, too.
Instead of 1-fg, I would guess the background to be a gray shade, with a
value of 1 until the foreground color goes above a brightness threshold
and then it should switch to fg-K where K is the threshold.
There may also be approaches where it can peek at the destination to
guess at the background color.
Antti Lankila wrote:
> I have a suggestion for getting sRGB-like text rendering without having sRGB alpha blending primitive. It's based on adjusting the alpha values of the glyph masks based on text foreground color without knowledge of the background color. I generated a writeup of it here:
>
> https://bel.fi/alankila/lcd/alpcor.html
>
> This looks like something that pixman's new glyph rendering code might consider doing. Thoughts?
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pixman mailing list
> Pixman at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pixman
More information about the Pixman
mailing list