<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 13, 2017 at 11:07 AM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Sep 11, 2017 at 10:39 PM, Behdad Esfahbod <<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>> wrote:<br>
> It was actually not that complicated:<br>
> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=102661" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=102661</a><br>
<br>
</span>Yes that sounds just like my second suggestion.<br>
<br>
To deal with the double-premultiply, I would just special-case OVER<br>
(and perhaps a few other bounded operators). They cause the current<br>
code to be run where it uses the glyph color+alpha as the source. All<br>
other compositing operators ignore the glyph color, and use the glyph<br>
alpha as the letter shape.<br>
<br>
SOURCE can then be used to fill the glyph shapes with a constant color.<br><div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>I'm not sure how I feel about that.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
><br>
> On Mon, Sep 11, 2017 at 1:44 AM, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br>
>><br>
>> Hi everyone,<br>
>><br>
>> yesterday I was asked to comment here:<br>
>><br>
>> <a href="https://github.com/i3/i3/pull/2925" rel="noreferrer" target="_blank">https://github.com/i3/i3/pull/<wbr>2925</a><br>
>><br>
>> The issue seems to be: With operator SOURCE, drawing a color glyph<br>
>> clears the entire surface. So, while "normal" glyphs are supposed to be<br>
>> a mask that is then filled, color glyphs seem to be handled as an<br>
>> unbounded source. This doesn't make a difference for OVER, but for lots<br>
>> of other operators (at least SOURCE) it obviously matters.<br>
>><br>
>> I didn't investigate this at all. I did not even try to reproduce.<br>
>> Hence, this ping. Could one of you please look at this, confirm this<br>
>> really happens, and say what should be done about this? Thanks.<br>
>><br>
>> And yes, in the thread on color fonts, Matthias Clasen answered one of<br>
>> my questions with:<br>
>><br>
>> >> Okay... so what is the new model? What happens when I draw a color<br>
>> >> glyph<br>
>> >> with operator XOR and a red source?<br>
>> ><br>
>> ><br>
>> > The red source is ignored for color glyphs because they are used as the<br>
>> > source.<br>
>><br>
>> So apparently this behaviour is by design, meaning that glyphs can only<br>
>> really be used with operator OVER any more (well, and some others). So<br>
>> let me ask this another why: Is this really a good behaviour?<br>
>><br>
>> Oh and one more thing: Who updates cairo's docs and all the explanations<br>
>> on the web page? ("glyphs work like this, except when they do not").<br>
>><br>
>> Cheers,<br>
>> Uli<br>
>><br>
>> P.S.: The list of recipents is copied from the recent thread on color<br>
>> fonts. I have no overview of how people ended up in this list. Sorry if<br>
>> $YOU are the wrong recipent.<br>
>> P.P.S: Yes, I also included Gtk-devel-list. I vaguely remember someone<br>
>> saying that this stuff is relevant there. Dear moderator, sorry for the<br>
>> work that this causes you.<br>
>> --<br>
>> 99 little bugs in the code<br>
>> 99 little bugs in the code<br>
>> Take one down, patch it around<br>
>> 117 little bugs in the code<br>
>>   -- @irqed<br>
><br>
><br>
><br>
><br>
> --<br>
> behdad<br>
> <a href="http://behdad.org/" rel="noreferrer" target="_blank">http://behdad.org/</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> --<br>
> cairo mailing list<br>
> <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
> <a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">https://lists.cairographics.<wbr>org/mailman/listinfo/cairo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div></div>