From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY) Date: Sun, 17 May 2020 21:45:50 +0300 Message-ID: <831rnibdsx.fsf@gnu.org> References: <20200517124125.000013a4@web.de> <97C7EAB7-10AB-4702-ABC8-EB6C1C50ABDB@gnu.org> <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <20200517202802.00006646@web.de> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121208"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Julius Pfrommer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 17 20:46:53 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaOJJ-000VRH-FD for ged-emacs-devel@m.gmane-mx.org; Sun, 17 May 2020 20:46:53 +0200 Original-Received: from localhost ([::1]:48824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaOJI-0004vU-HL for ged-emacs-devel@m.gmane-mx.org; Sun, 17 May 2020 14:46:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaOIQ-0004UF-ER for emacs-devel@gnu.org; Sun, 17 May 2020 14:45:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36348) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaOIQ-0000vm-3i; Sun, 17 May 2020 14:45:58 -0400 Original-Received: from [176.228.60.248] (port=3157 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jaOIP-00082w-G8; Sun, 17 May 2020 14:45:57 -0400 In-Reply-To: <20200517202802.00006646@web.de> (message from Julius Pfrommer on Sun, 17 May 2020 20:28:02 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250645 Archived-At: > Date: Sun, 17 May 2020 20:28:02 +0200 > From: Julius Pfrommer > Cc: emacs-devel@gnu.org > > Cairo is a vector-drawing library and only responsible for the "glass" > of each frame (called the "canvas" in other communities). All the > event-handling logic, menu-drawing, etc. is untouched by it. Which is what I said. So Cairo alone will be unable to provide all the GUI features we need, we will need something else. And that something is done different on different platforms. > Looking at xterm.c, it is littered with #ifdef USE_CAIRO. Yes, because Cairo and Xlib are two quite different ways of doing GUI display. > A first step could be to assume Cairo on X-based platforms and remove > duplicate code. We are going there, but it takes time. We've just made Cairo the default build on master; it couldn't be that previously because the Cairo code had several grave bugs which took us time to fix. > The second step could be to decouple the "glass" from > the tookit "chrome" more thoroughly in xterm.c. That is easier to do > when a Cairo-canvas can be assumed for drawing. > > Then, that entire "glass" could be reused by other platforms once they > have a Cairo-canvas for drawing as well. (Modulo the XWidget support > that depends on GTK.) > > Once a switchover is in reach, it can live separately to the existing > platform-specific "glass" until all the kinks are worked out. Sounds like a good plan for several years, maybe more, of extensive development on several platforms. Can I interest you in doing this? And meanwhile, we also need to come up with enough new features every 2 - 3 years to keep our users engaged and attract new ones.