<div dir="ltr">Should be fixed.  Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 29, 2017 at 4:45 PM,  <span dir="ltr"><<a href="mailto:iofelben@gmail.com" target="_blank">iofelben@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tried to run gnome-characters with Cairo master, switching to noto-<br>
color-emoji crashes with:<br>
<br>
#0  0x00007fd0ecd2868b in raise () at /lib64/libc.so.6<br>
#1  0x00007fd0ecd2a417 in abort () at /lib64/libc.so.6<br>
#2  0x00007fd0ecd208fa in __assert_fail_base () at /lib64/libc.so.6<br>
#3  0x00007fd0ecd20972 in  () at /lib64/libc.so.6<br>
#4  0x00007fd0f1370b6e in _cairo_error (status=status@entry=<a href="tel:3646361312" value="+13646361312">3646361312</a>)<br>
at cairo-error.c:68<br>
#5  0x00007fd0f1367802 in _cairo_set_error (cr=0x3dd89ecc00,<br>
status=<a href="tel:3646361312" value="+13646361312">3646361312</a>) at cairo.c:400<br>
#6  0x00007fd0f13691b1 in cairo_show_text_glyphs (cr=0x3dd89ecc00,<br>
utf8=0x3dd8a41b40 "😀", utf8_len=4, glyphs=0x7fffada90d60, num_glyphs=1<br>
, clusters=0x7fffada91640, num_clusters=1, cluster_flags=(unknown: 0))<br>
at cairo.c:3742<br>
#7  0x00007fd0f0283f69 in pango_cairo_renderer_show_<wbr>text_glyphs.isra ()<br>
at /lib64/libpangocairo-1.0.so.0<br>
#8  0x00007fd0f0284161 in pango_cairo_renderer_draw_<wbr>glyph_item () at<br>
/lib64/libpangocairo-1.0.so.0<br>
#9  0x00007fd0f0057e1e in pango_renderer_draw_glyph_item () at<br>
/lib64/libpango-1.0.so.0<br>
#10 0x00007fd0f00588b1 in pango_renderer_draw_layout_<wbr>line () at<br>
/lib64/libpango-1.0.so.0<br>
#11 0x00007fd0f0058c65 in pango_renderer_draw_layout () at<br>
/lib64/libpango-1.0.so.0<br>
#12 0x00007fd0f028443a in _pango_cairo_do_layout () at<br>
/lib64/libpangocairo-1.0.so.0<br>
#13 0x00007fd0ef560bde in ffi_call_unix64 () at /lib64/libffi.so.6<br>
#14 0x00007fd0ef56054f in ffi_call () at /lib64/libffi.so.6<br>
#15 0x00007fd0f10ab6f6 in  () at /lib64/libgjs.so.0<br>
#16 0x00007fd0f10ad066 in  () at /lib64/libgjs.so.0<br>
#17 0x00007fd0ee3626a8 in js::Invoke(JSContext*, JS::CallArgs,<br>
js::MaybeConstruct) () at /lib64/libmozjs-38.so<br>
#18 0x00007fd0ee3584cd in Interpret(JSContext*, js::RunState&) () at<br>
/lib64/libmozjs-38.so<br>
#19 0x00007fd0ee362324 in js::RunScript(JSContext*, js::RunState&) ()<br>
at /lib64/libmozjs-38.so<br>
#20 0x00007fd0ee362614 in js::Invoke(JSContext*, JS::CallArgs,<br>
js::MaybeConstruct) () at /lib64/libmozjs-38.so<br>
#21 0x00007fd0ee664f13 in js_fun_apply(JSContext*, unsigned int,<br>
JS::Value*) () at /lib64/libmozjs-38.so<br>
#22 0x00007fd0ee3626a8 in js::Invoke(JSContext*, JS::CallArgs,<br>
js::MaybeConstruct) () at /lib64/libmozjs-38.so<br>
#23 0x00007fd0ee363243 in js::Invoke(JSContext*, JS::Value const&,<br>
JS::Value const&, unsigned int, JS::Value const*,<br>
JS::MutableHandle<JS::Value>) () at /lib64/libmozjs-38.so<br>
#24 0x00007fd0ee4b5485 in js::jit::DoCallFallback(<wbr>JSContext*,<br>
js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int,<br>
JS::Value*, JS::MutableHandle<JS::Value>) ()<br>
    at /lib64/libmozjs-38.so<br>
#25 0x00007fd0f1877510 in  ()<br>
#26 0x00007fffada948a0 in  ()<br>
#27 0x00007fffada94368 in  ()<br>
#28 0x0000000000000000 in  ()<br>
<div><div class="h5"><br>
On Sat, 2017-07-29 at 16:30 +0100, Behdad Esfahbod wrote:<br>
> On Sat, Jul 29, 2017 at 11:58 AM, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>><br>
> wrote:<br>
> > Hi Behdad<br>
> ><br>
> > I don't think that is my decision to make. When thinking about<br>
> > "fonts in<br>
> > cairo", I'm thinking "Behdad". I'm just asking weird questions from<br>
> > the<br>
> > sideline. :-)<br>
><br>
> Thanks. :-)  Pushed!!!!  At least ten people already asked me "what's<br>
> up with emoji" at GUADEC...<br>
><br>
> > Uli<br>
> ><br>
> > P.S.: How relevant and up to date is the CC list here? I always get<br>
> > a<br>
> > "your message to gtk-devel-list awaits moderator approval"-mail<br>
> > when<br>
> > replying to this thread...<br>
> ><br>
><br>
> My messages go through, yours probably don't because you are not a<br>
> member.  It's valuable still.<br>
><br>
> Cheers,<br>
> b<br>
><br>
> > On 28.07.2017 16:38, Behdad Esfahbod wrote:<br>
> > > Uli,<br>
> > ><br>
> > > Can we commit this?  I don't think waiting another few years will<br>
> > 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 <behdad@behdad.o<br>
> > rg> wrote:<br>
> > ><br>
> > >> Right.  In the future we would want to make it show glyphs in<br>
> > the input<br>
> > >> order, ie. not separate color vs non-color.  That's the order<br>
> > required by<br>
> > >> CSS for example.  In a show-text-glyphs call with<br>
> > CAIRO_TEXT_CLUSTER_FLAG_<wbr>BACKWARD,<br>
> > >> it might be desirable to show 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><br>
> > > wrote:<br>
> > >>><br>
> > >>>> On 07.07.2017 15:23, Matthias Clasen wrote:<br>
> > >>>>> On Sat, Jul 1, 2017 at 2:25 AM, Uli Schlachter <psychon@znc.i<br>
> > n> wrote:<br>
> > >>>>>> On 30.06.2017 17:29, Behdad Esfahbod wrote:<br>
> > >>>>>>> On Jun 30, 2017 7:51 PM, "Matthias Clasen" <mclasen@redhat.<br>
> > com><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<br>
> > in<br>
> > >>>>>>>>> cairo.  There's<br>
> > >>>>>>>>> some discussion here:<br>
> > >>>>>>>><br>
> > >>>>>>>> what was the solution to make this fit into cairo's<br>
> > drawing model?<br>
> > >>>>>>>> Text<br>
> > >>>>>>>> / glyphs are used as a mask and a mask does not have<br>
> > colors.<br>
> > >>>>>>>><br>
> > >>>>>>><br>
> > >>>>>>> There is no solution to that. The assumption in cairo's<br>
> > drawing 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<br>
> > 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<br>
> > used as the<br>
> > >>>>> source.<br>
> > >>>><br>
> > >>>> Hi again,<br>
> > >>>><br>
> > >>>> I just came up with another question: How are overlapping<br>
> > glyphs handled?<br>
> > >>>><br>
> > >>>> Let's say I have a red glyph and a blue glyph and I draw them<br>
> > in such a<br>
> > >>>> way that they overlap. Let's say this additionally overlaps<br>
> > with a<br>
> > >>>> non-colored glyph in the same position and I use a green<br>
> > 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<br>
> > 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-<br>
> > 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<br>
> > 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<br>
> > 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>
> ><br>
> > --<br>
> > "Why make things difficult, when it is possible to make them<br>
> > cryptic<br>
> > and totally illogical, with just a little bit more effort?" -- A.<br>
> > P. J.<br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> gtk-devel-list mailing list<br>
> <a href="mailto:gtk-devel-list@gnome.org">gtk-devel-list@gnome.org</a><br>
> <a href="https://mail.gnome.org/mailman/listinfo/gtk-devel-list" rel="noreferrer" target="_blank">https://mail.gnome.org/<wbr>mailman/listinfo/gtk-devel-<wbr>list</a><br>
</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>