Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Here, I am drawing a highlight on a space after the letter f. As you can see, although the text is in the correct spot, the highlights draw in a different spot. This is because there is a span on this line that has a lot of vertical padding, which pushes the whole line down. The highlight rendering calculation is not taking this into account (unlike the text render), so the highlight is draw far from the letters.
Sorry about the somewhat unhelpful screenshot, it's from my debugging sessions and I've since abandoned this approach.
What is the expected behavior?
The highlight should be draw on the letters.
Version
crates.io release
Operating System
macOS
Do you have any log output?
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Here, I am drawing a highlight on a space after the letter f. As you can see, although the text is in the correct spot, the highlights draw in a different spot. This is because there is a span on this line that has a lot of vertical padding, which pushes the whole line down. The highlight rendering calculation is not taking this into account (unlike the text render), so the highlight is draw far from the letters.
Sorry about the somewhat unhelpful screenshot, it's from my debugging sessions and I've since abandoned this approach.
What is the expected behavior?
The highlight should be draw on the letters.
Version
crates.io release
Operating System
macOS
Do you have any log output?