You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following code in which we display a series of rectangles using rect in the first line and an alike series of rectangles created with polygon.
With polygon, a slight space appears between the tightly set rectangles.
Note I have not discovered this on PDFs, it only seems to happen with PNG export. With SVGs, the story is different: here, both with rect and polygon, a slight space is left between consecutive rectangles.
This may not seem as a great issue in itself but is indeed very annoying for many tasks such as general layout design, heatmaps, and more.
A (not very nice) workaround would be to add a very thin stroke. But how thin should the stroke be?
(Why use polygon instead of rect? The latter does not accept negative dimensions, see also #3265, this can be overcome with polygon).
Reproduction URL
No response
Operating system
No response
Typst version
I am using the latest version of Typst
The text was updated successfully, but these errors were encountered:
Description
Consider the following code in which we display a series of rectangles using
rect
in the first line and an alike series of rectangles created withpolygon
.With
polygon
, a slight space appears between the tightly set rectangles.Note I have not discovered this on PDFs, it only seems to happen with PNG export. With SVGs, the story is different: here, both with
rect
andpolygon
, a slight space is left between consecutive rectangles.This may not seem as a great issue in itself but is indeed very annoying for many tasks such as general layout design, heatmaps, and more.
A (not very nice) workaround would be to add a very thin stroke. But how thin should the stroke be?
(Why use
polygon
instead ofrect
? The latter does not accept negative dimensions, see also #3265, this can be overcome withpolygon
).Reproduction URL
No response
Operating system
No response
Typst version
The text was updated successfully, but these errors were encountered: