Open jturcotte opened 1 year ago
It looks like this is an issue that was accepted upstream: https://bugs.chromium.org/p/skia/issues/detail?id=11933
Interestingly this was also referenced from flutter: https://github.com/flutter/flutter/issues/40648
I don't see an easy way of working around this using the API we're using right now. But perhaps this is one thing we can fix more easily with cosmic text if we switch to it.
Oh ok, fixing upstream isn’t what I’d qualify as an easy fix. I’d also be ok with a “won’t fix” as this isn’t your bug.
I'm inclined to leave this ticket open to ensure that we test that this will be fixed with cosmic-text and add a test using the screenshots driver.
This is what renderer-winit-skia gives me, the last text's "---" should be aligned with the top one:![image](https://github.com/slint-ui/slint/assets/839935/d498a58a-3b81-4608-a68b-63a1660f4df4)
renderer-winit-femtovg gives me the expected alignment:![image](https://github.com/slint-ui/slint/assets/839935/0e72845e-585e-41df-a26e-2ddea62cc487)
I don't think it's high severity, but the two "shouldn't align" cases 3 and 4 makes me think that it could be a simple fix if the issue were due to something like wrong spaces trimming somewhere.
Since slint-viewer doesn't seem to be built with the skia backend, here is a runnable example: https://gist.github.com/jturcotte/4d7e4011135fdddd22df123d884443c6