<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 28, 2017 at 6:00 PM, 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">I think the stacking order of glyphs can remain undefined for<br>
cairo_show_glyphs. This seems more like something pango would be in<br>
charge of.<br><div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>We are talking about order of glyphs drawn in one cairo_show_glyphs(), so I don't see how this is pango's job.<br> <br></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 Fri, Jul 28, 2017 at 7:38 AM, Behdad Esfahbod <<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>> wrote:<br>
> Uli,<br>
><br>
> Can we commit this?  I don't think waiting another few years will result in<br>
> a superior patchset. :)<br>
><br>
> Cheers,<br>
><br>
> behdad<br>
><br>
> On Wed, Jul 19, 2017 at 1:53 AM, Behdad Esfahbod <<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>> wrote:<br>
>><br>
>> Right.  In the future we would want to make it show glyphs in the input<br>
>> order, ie. not separate color vs non-color.  That's the order required by<br>
>> CSS for example.  In a show-text-glyphs call with<br>
>> CAIRO_TEXT_CLUSTER_FLAG_<wbr>BACKWARD, it might be desirable to show<br>
>> back-to-front.<br>
>><br>
>> On Tue, Jul 18, 2017 at 1:59 PM, Matthias Clasen<br>
>> <<a href="mailto:matthias.clasen@gmail.com">matthias.clasen@gmail.com</a>> wrote:<br>
>>><br>
>>> On Sat, Jul 15, 2017 at 4:05 AM, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br>
>>>><br>
>>>> On 07.07.2017 15:23, Matthias Clasen wrote:<br>
>>>> > On Sat, Jul 1, 2017 at 2:25 AM, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br>
>>>> >> On 30.06.2017 17:29, Behdad Esfahbod wrote:<br>
>>>> >>> On Jun 30, 2017 7:51 PM, "Matthias Clasen" <<a href="mailto:mclasen@redhat.com">mclasen@redhat.com</a>><br>
>>>> >>> wrote:<br>
>>>> >>> On Fri, 2017-06-30 at 17:02 +0200, Uli Schlachter wrote:<br>
>>>> >>>> On 28.06.2017 14:23, Behdad Esfahbod wrote:<br>
>>>> >>>>> All of you have asked me about the status of color fonts in<br>
>>>> >>>>> cairo.  There's<br>
>>>> >>>>> some discussion here:<br>
>>>> >>>><br>
>>>> >>>> what was the solution to make this fit into cairo's drawing model?<br>
>>>> >>>> Text<br>
>>>> >>>> / glyphs are used as a mask and a mask does not have colors.<br>
>>>> >>>><br>
>>>> >>><br>
>>>> >>> There is no solution to that. The assumption in cairo's drawing<br>
>>>> >>> model<br>
>>>> >>> about glyphs/fonts has simply been invalidated by reality.<br>
>>>> >>><br>
>>>> >>><br>
>>>> >>> Correct.<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<br>
>>>> > the<br>
>>>> > source.<br>
>>>><br>
>>>> Hi again,<br>
>>>><br>
>>>> I just came up with another question: How are overlapping glyphs<br>
>>>> handled?<br>
>>>><br>
>>>> Let's say I have a red glyph and a blue glyph and I draw them in such a<br>
>>>> way that they overlap. Let's say this additionally overlaps with a<br>
>>>> non-colored glyph in the same position and I use a green source with 50%<br>
>>>> alpha (cairo_set_source_rgba(cr, 0, 1, 0, 0.5)).<br>
>>>><br>
>>>> What's the visible result?<br>
>>>><br>
>>><br>
>>> Here is what my implementation does: It renders the color glyphs, in<br>
>>> order, followed by the non-color glyphs.<br>
>>><br>
>>> In practice, I don't think the case of mixed color and non-color glyphs<br>
>>> in the same call will be all that common.<br>
>>> Most apps will explicitly set a color font just for the emoji and they<br>
>>> won't render regular text with an emoji font,<br>
>>> with the result that runs of color glyphs and non-color glyphs will<br>
>>> typically be in separate calls.<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> behdad<br>
>> <a href="http://behdad.org/" rel="noreferrer" target="_blank">http://behdad.org/</a><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><span class="HOEnZb"><font color="#888888">> --<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>
</font></span></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>