GNU bug report logs - #67533
SVG images confound position pixel measurements

Previous Next

Package: emacs;

Reported by: JD Smith <jdtsmith <at> gmail.com>

Date: Wed, 29 Nov 2023 20:33:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #86 received at 67533 <at> debbugs.gnu.org (full text, mbox):

From: JD Smith <jdtsmith <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 67533 <at> debbugs.gnu.org
Subject: Re: bug#67533: SVG images confound position pixel measurements
Date: Sun, 3 Dec 2023 13:58:26 -0500
> On Dec 3, 2023, at 11:33 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: JD Smith <jdtsmith <at> gmail.com>
>> Date: Sun, 3 Dec 2023 10:49:37 -0500
>> 
>> BTW, in case anyone is wondering where window-text-pixel-size with a negative pixel FROM offset is needed, Po Lu's pixel-scroll-precision-up-page is using precisely this approach to measure the content above window-start (so as to smoothly scroll up with high performance):
>> 
>>        (let* ((start (window-start))
>>               (dims (window-text-pixel-size nil (cons start (- delta))
>>                                             start nil nil nil t))
>> 
> 
> I know very well why that feature was added.  My questions was not
> about negative offsets in general, but about negative offsets when
> FROM is in the first line of the buffer, i.e. when there's no text at
> all above that line.

Thanks, all set on this end.  Just mentioning the use-case for the casual reader who may wonder what real world impact it has.





This bug report was last modified 1 year and 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.