Em sáb., 1 de mai. de 2021 às 13:59, Jeru Sanders
> Following up on this, I did the 1px stroke solution and it worked beautifully. I can draw my fills without AA and just draw the same path with a stroke paint using AA to make the edges look nice. I still have to draw my strokes with AA though, luckily my art is 90% fills, this method even preforms better than just turning AA on for fills.
> It makes me wonder why this isn't the default method of AA, and why strokes even exist instead of being converted into fills.
I think it may not work as intended if you have semi-transparent
fills. I'm not 100% sure but I guess skia converts stroke into fills
> The only issue is that tiny things look a little bit thicker, but it's hardly noticeable in my project.
> On Monday, April 26, 2021 at 3:24:06 AM UTC-6 l.l...@collabora.com
>> On Saturday 24 of April 2021, Jeru Sanders wrote:
>> > I'm using Skia to render vectors that came from an SWF parser that wrote,
>> > it was a hassle but, looks good in most cases.
>> > But when using paint.setAntiAlias(true), adjacent fills seem to leave gaps
>> > where the background can be seen. I've read some stuff about Skia's AA
>> > implementation and half pixels, it seems like I could technically solve
>> > this by inflating all the vector graphics by ~0.5px.
>> > I can almost imagine calculating the normal of each line and bezier curve
>> > then moving everything out by a small amount at load time, does that sound
>> > like a reasonable solution?
>> See also the discussion at
>> similar problem.
>> Luboš Luňák
> You received this message because you are subscribed to the Google Groups "skia-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com
> To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/08b8543e-af1f-40c5-84ad-8b82e966aea9n%40googlegroups.com