slint icon indicating copy to clipboard operation
slint copied to clipboard

Regression: Plotters example shows a black border

Open tronical opened this issue 1 year ago • 2 comments

The plotters example shows a black border since the 0.2.5 release:

https://slint-ui.com/releases/0.2.5/demos/plotter/

This is not visible in

https://slint-ui.com/releases/0.2.4/demos/plotter/

It's also reproducible on the desktop for me.

It appears that this is fixed upstream at https://github.com/plotters-rs/plotters/issues/368 but upgrading to the newer version causes some build issues:

the package `servo-fontconfig` links to the native library `fontconfig`, but it conflicts with a previous package which links to `fontconfig` as well:
package `font-kit v0.11.0`
    ... which satisfies dependency `font-kit = "^0.11.0"` of package `plotters v0.3.3

It might be possible to work around this by pre-filling the image on the example side.

tronical avatar Aug 29 '22 15:08 tronical

It might be possible to work around this by pre-filling the image on the example side.

I don't think we should attempt a work around. We should ideally fix our use of fontconfig and stuff so that we can make this work.

ogoffart avatar Aug 29 '22 15:08 ogoffart

Possibly related PR: https://github.com/slint-ui/slint/pull/956

tronical avatar Aug 31 '22 07:08 tronical

Fixed.

ogoffart avatar Oct 24 '22 16:10 ogoffart