|
From: | JD Smith |
Subject: | bug#67533: SVG images confound position pixel measurements |
Date: | Sat, 2 Dec 2023 08:36:07 -0500 |
Strange. Both of my ports here (NS and Mac) show the same issue. Did you check the svg-pixel-demo-report buffer the header mentions, where the mismatch measurement information gets reported? The specific problems encountered are listed in the report buffer, updated with my/check-buffer-pixel-values. For example, at a standard width of 80 characters, I get this report:
So in this case, 5 of the image locations (of 7) are showing sizes of entities one pixel above them as too large (with sizes sometimes not matching any line height). At small window widths (like 25-30 characters) many zero heights start showing up. Running the check in a normal text window produces an empty report (no errors).
Perhaps you did not check the report buffer? I usually am opening that in another frame.
I neglected that. I don’t think it makes a difference, but have now included it, and fixed a couple of resulting unused variable complaints. Please re-download the gist and try it again to be sure.
Same thing as for the images: the pixel heights of the entity at an offset of -1 pixels. In the demo code I’ve written, this seems to occur only on characters with image 'display (overlay/text-property). In my (much larger) org mode with latex preview file, it sometimes happens on regular text characters. I’m hoping/expecting whatever fix we find for this problem corrects that too.
Makes sense. That comports with the fact that I’ve seen similar issues with PNG overlays. |
[Prev in Thread] | Current Thread | [Next in Thread] |