GNU bug report logs - #73082
30; Inconsistent Stipple Support

Previous Next

Package: emacs;

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

Date: Fri, 6 Sep 2024 21:59:02 UTC

Severity: normal

To reply to this bug, email your comments to 73082 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Fri, 06 Sep 2024 21:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to JD Smith <jdtsmith <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 06 Sep 2024 21:59:02 GMT) Full text and rfc822 format available.

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

From: JD Smith <jdtsmith <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Po Lu <luangruo <at> yahoo.com>
Subject: 30; Inconsistent Stipple Support
Date: Fri, 6 Sep 2024 17:58:02 -0400
[Message part 1 (text/plain, inline)]
The :stipple face attribute is not consistently supported across all Emacs 30 builds, with incorrect or missing stipple display for NS and GTK+Cairo builds.  

The following test of :stipple should lead to an image similar to the attached.

(let* ((w (window-font-width))
       (stipple `(,w 1 ,(apply #'unibyte-string (make-list (/ (+ w 7) 8) 186)))))
  (insert "\n" (propertize (concat  (make-string 15 ?\s)
				    "THIS IS A TEST"
				    (make-string 15 ?\s))
                           'face `(:background "red" :foreground "blue" :stipple ,stipple))))

Only some Emacs 30 builds correctly render this simple stipple.  There has been some progress on :stipple support recently, but it remains incomplete.  To my knowledge, the current situation for :stipple support in Emacs 30 is as follows:
NS (partially working): Commit ef6ffbdc79 from last May provided a partial fix, but stipples are black and white only (bug#70712)
Windows (working?): patched in June (bug#71159)
PGTK (working): incorrect stipple display patched July, 2023 (bug#64969)
GTK, non-Cairo (working): appears to be working correctly
GTK + Cairo (not working uniformly): Stipples are reported to be missing with some Cairo builds of Emacs 30
Other X11 builds (?): Unsure if these are supported (but suspect they are given the legacy of stipple)


[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 07 Sep 2024 06:52:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: JD Smith <jdtsmith <at> gmail.com>, 73082 <at> debbugs.gnu.org
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 07 Sep 2024 14:51:05 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: Po Lu <luangruo <at> yahoo.com>
>> From: JD Smith <jdtsmith <at> gmail.com>
>> Date: Fri, 6 Sep 2024 17:58:02 -0400
>> 
>> (let* ((w (window-font-width))
>>        (stipple `(,w 1 ,(apply #'unibyte-string (make-list (/ (+ w 7) 8) 186)))))
>>   (insert "\n" (propertize (concat  (make-string 15 ?\s)
>> 				    "THIS IS A TEST"
>> 				    (make-string 15 ?\s))
>>                            'face `(:background "red" :foreground "blue" :stipple ,stipple))))
>> 
>> Only some Emacs 30 builds correctly render this simple stipple.  There has been some progress on :stipple support recently, but it remains incomplete.  To my knowledge, the current situation for :stipple support in Emacs 30 is as follows:
>> NS (partially working): Commit ef6ffbdc79 from last May provided a partial fix, but stipples are black and white only (bug#70712)
>> Windows (working?): patched in June (bug#71159)
>> PGTK (working): incorrect stipple display patched July, 2023 (bug#64969)
>> GTK, non-Cairo (working): appears to be working correctly
>> GTK + Cairo (not working uniformly): Stipples are reported to be missing with some Cairo builds of Emacs 30
>> Other X11 builds (?): Unsure if these are supported (but suspect they are given the legacy of stipple)
>
> The MS-Windows build of the emacs-30 branch here shows the display you
> expected.

You should add Haiku and Android to your list, as Emacs supports
stipples on both of these window systems.  (And on the latter they were
in fact implemented for your package.)

I am also interested to know precisely which Cairo builds fail to
display them, the stipple implementations being virtually identical
across the PGTK and the X + Cairo builds.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 07 Sep 2024 06:54:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: JD Smith <jdtsmith <at> gmail.com>
Cc: luangruo <at> yahoo.com, 73082 <at> debbugs.gnu.org
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 07 Sep 2024 09:15:36 +0300
> Cc: Po Lu <luangruo <at> yahoo.com>
> From: JD Smith <jdtsmith <at> gmail.com>
> Date: Fri, 6 Sep 2024 17:58:02 -0400
> 
> (let* ((w (window-font-width))
>        (stipple `(,w 1 ,(apply #'unibyte-string (make-list (/ (+ w 7) 8) 186)))))
>   (insert "\n" (propertize (concat  (make-string 15 ?\s)
> 				    "THIS IS A TEST"
> 				    (make-string 15 ?\s))
>                            'face `(:background "red" :foreground "blue" :stipple ,stipple))))
> 
> Only some Emacs 30 builds correctly render this simple stipple.  There has been some progress on :stipple support recently, but it remains incomplete.  To my knowledge, the current situation for :stipple support in Emacs 30 is as follows:
> NS (partially working): Commit ef6ffbdc79 from last May provided a partial fix, but stipples are black and white only (bug#70712)
> Windows (working?): patched in June (bug#71159)
> PGTK (working): incorrect stipple display patched July, 2023 (bug#64969)
> GTK, non-Cairo (working): appears to be working correctly
> GTK + Cairo (not working uniformly): Stipples are reported to be missing with some Cairo builds of Emacs 30
> Other X11 builds (?): Unsure if these are supported (but suspect they are given the legacy of stipple)

The MS-Windows build of the emacs-30 branch here shows the display you
expected.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 07 Sep 2024 06:54:03 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: JD Smith <jdtsmith <at> gmail.com>
Cc: Po Lu <luangruo <at> yahoo.com>, 73082 <at> debbugs.gnu.org
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 07 Sep 2024 08:19:45 +0200
[Message part 1 (text/plain, inline)]
JD Smith <jdtsmith <at> gmail.com> writes:

> To my knowledge, the current situation for :stipple support in Emacs
> 30 is as follows:
>
> * NS (partially working): Commit ef6ffbdc79 from last May provided a
> partial fix, but stipples are black and white only (bug#70712)

FWIW, this is what I see on macOS with NS-port:
[stipples-ns.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
> * Windows (working?): patched in June (bug#71159)

And this is on Windows:
[stipples-windows.png (image/png, inline)]
[Message part 5 (text/plain, inline)]
Both with "emacs -Q" incl. the value of `emacs-repository-version'.

Best, Arash

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 07 Sep 2024 12:52:02 GMT) Full text and rfc822 format available.

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

From: JD Smith <jdtsmith <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>,
 73082 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 7 Sep 2024 08:50:28 -0400
[Message part 1 (text/plain, inline)]

> On Sep 7, 2024, at 2:51 AM, Po Lu <luangruo <at> yahoo.com> wrote:
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
>>> From: JD Smith <jdtsmith <at> gmail.com>
>>> Date: Fri, 6 Sep 2024 17:58:02 -0400
>>> 
>>> (let* ((w (window-font-width))
>>>       (stipple `(,w 1 ,(apply #'unibyte-string (make-list (/ (+ w 7) 8) 186)))))
>>>  (insert "\n" (propertize (concat  (make-string 15 ?\s)
>>> 				    "THIS IS A TEST"
>>> 				    (make-string 15 ?\s))
>>>                           'face `(:background "red" :foreground "blue" :stipple ,stipple))))
>>> 
>>> Only some Emacs 30 builds correctly render this simple stipple.  There has been some progress on :stipple support recently, but it remains incomplete.  To my knowledge, the current situation for :stipple support in Emacs 30 is as follows...
>> The MS-Windows build of the emacs-30 branch here shows the display you
>> expected.
> 
> You should add Haiku and Android to your list, as Emacs supports
> stipples on both of these window systems.  (And on the latter they were
> in fact implemented for your package.)
> 
> I am also interested to know precisely which Cairo builds fail to
> display them, the stipple implementations being virtually identical
> across the PGTK and the X + Cairo builds.

Thanks, this is all positive news.  Glad to learn of Android+Haiku support.  Is support on these builds arriving for Emacs 30 only?

The Cairo issue has been harder to track down.  Several users have reported Cairo builds which fail to display stipples.  I gather Cairo is the default so this must be a sporadic failure.  Recently a user with identical builds on two different machines, with the precise same version of GTK3 and Cairo, found that one system shows stipples correctly, the other omits them entirely.  On the non-working system, compiling --without-cairo resolves this.

The build version in questions is: 



He's willing to test these systems.  

Thanks for your work on this.
[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 07 Sep 2024 13:27:02 GMT) Full text and rfc822 format available.

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

From: JD Smith <jdtsmith <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>, 73082 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, contact <at> jamescherti.com
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 7 Sep 2024 09:17:31 -0400
[Message part 1 (text/plain, inline)]
> The Cairo issue has been harder to track down.  Several users have reported Cairo builds which fail to display stipples.  I gather Cairo is the default so this must be a sporadic failure.  Recently a user with identical builds on two different machines, with the precise same version of GTK3 and Cairo, found that one system shows stipples correctly, the other omits them entirely.  On the non-working system, compiling --without-cairo resolves this.
> 
> The build version in questions is: 
> 
> 
> 
> He's willing to test these systems.  
> 

Copying in the affected user.  
[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Fri, 13 Sep 2024 18:10:01 GMT) Full text and rfc822 format available.

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

From: JD Smith <jdtsmith <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>,
 73082 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, contact <at> jamescherti.com
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Fri, 13 Sep 2024 14:07:41 -0400
[Message part 1 (text/plain, inline)]
> On Sep 7, 2024, at 9:17 AM, JD Smith <jdtsmith <at> gmail.com> wrote:
> 
> On Sep 7, 2024, at 2:51 AM, Po Lu <luangruo <at> yahoo.com <mailto:luangruo <at> yahoo.com>> wrote:
> I am also interested to know precisely which Cairo builds fail to
> display them, the stipple implementations being virtually identical
> across the PGTK and the X + Cairo builds.

>> The Cairo issue has been harder to track down.  Several users have reported Cairo builds which fail to display stipples.  I gather Cairo is the default so this must be a sporadic failure.  Recently a user with identical builds on two different machines, with the precise same version of GTK3 and Cairo, found that one system shows stipples correctly, the other omits them entirely.  On the non-working system, compiling --without-cairo resolves this.

Po, did any potential causes for intermittent stipple display among identical Cairo builds occur to you?  Anything obvious to test?

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Sat, 14 Sep 2024 00:34:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: JD Smith <jdtsmith <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, contact <at> jamescherti.com,
 73082 <at> debbugs.gnu.org
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Sat, 14 Sep 2024 08:33:15 +0800
JD Smith <jdtsmith <at> gmail.com> writes:

> Po, did any potential causes for intermittent stipple display among
> identical Cairo builds occur to you?  Anything obvious to test?

No, sorry.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73082; Package emacs. (Thu, 19 Sep 2024 15:56:02 GMT) Full text and rfc822 format available.

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

From: JD Smith <jdtsmith <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, contact <at> jamescherti.com,
 73082 <at> debbugs.gnu.org
Subject: Re: bug#73082: 30; Inconsistent Stipple Support
Date: Thu, 19 Sep 2024 11:53:27 -0400

> On Sep 13, 2024, at 8:33 PM, Po Lu <luangruo <at> yahoo.com> wrote:
> 
> JD Smith <jdtsmith <at> gmail.com> writes:
> 
>> Po, did any potential causes for intermittent stipple display among
>> identical Cairo builds occur to you?  Anything obvious to test?
> 
> No, sorry.

New clue on this end from user reports.  Building --with-cairo disables stipples.  Building --without-cairo yields good stipples.  Omitting any mention of Cairo among the build flags also yields good stipples (even with the same exact emacs-version).  

So something specific to the --with-cairo flag itself seems to be breaking stipples.  Very surprising.



This bug report was last modified 270 days ago.

Previous Next


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