Skip to content

Apply anti-aliasing to elements clipped by block radius #6267

@MDLC01

Description

@MDLC01

Consider the following code:

#block(
  radius: 100%,
  clip: true,
  rect(fill: gray, height: 1cm, width: 1cm),
)

the result is a circle, but when exporting to PNG, the circle is not anti-aliased1:

A circle with no anti-aliasing.

Doing the same with a normal circle has the desired result:

#circle(fill: gray, radius: 0.5cm)

A circle with anti-aliasing.

Footnotes

  1. This image was scaled five times with nearest-neighbor after the facts to make the effect more visible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpngRelated to PNG export.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions