#difference between typst online and cli rendering of table

14 messages · Page 1 of 1 (latest)

fervent hemlock
#

Anyone know why this is different? Simple example:
#table(
inset: 0.5cm,
columns: 2,
stroke: none,
table.cell([Join], fill: gray),table.cell([me], fill: gray)
)
With the typst cli, I get a 1px white line between the cells
With the typst.app/play editor, it's what I expect.
Is there anything I can do to make them the same?
I attached screenshots, one from the cli (0.14.0 version) and online (also on 0.14.0)

lunar briar
#

I think that's a rendering artifact of the viewer you're using

stray forge
#

Does it happen if you export to PNG with the CLI?

lunar briar
#

For example if I compile the snippet to PDF and view it with Zathura, I can sometimes see the line but viewing with Okular I can't.

#

Rendering to png or svg (viewing through firefox) doesn't show the line either

mental zealot
#

This is called a hairline in graphics; most printers will handle it fine, but computers are silly

fervent hemlock
#

True, png/svg are fine, and a different viewer is ok.

stray forge
mental zealot
#

huh, interesting that that's still open

#

considering that #7133 was closed as not planned, but is basically the same Nvm, #3432 also occurs in PNG.
In that case what's seen here would be closer to https://github.com/typst/typst/issues/7133 than #3432 I believe.

stray forge
#

conflation artifacts
apparently

fervent hemlock
#

perfect, thanks very much for for that - it looks like this, for sure.

#

and thanks for the references - learnt something new tonight!

stray forge
#

I guess you can overlap the two shapes slightly (or live with it, depending on your PDF renderer)