From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY) Date: Tue, 19 May 2020 00:08:14 +0200 (CEST) Message-ID: <7cdbdaaa-c53a-413c-a016-ab3d3fbb19ec_IMAP_ADDED_MISSING@EDGAR> References: <20200517124125.000013a4@web.de> <97C7EAB7-10AB-4702-ABC8-EB6C1C50ABDB@gnu.org> <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <20200517202802.00006646@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="87743"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Julius Pfrommer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 19 00:08:49 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 1janwH-000Mja-PJ for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 00:08:49 +0200 Original-Received: from localhost ([::1]:45602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1janwG-0002ZZ-Ri for ged-emacs-devel@m.gmane-mx.org; Mon, 18 May 2020 18:08:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1janvp-0001yO-Lk for emacs-devel@gnu.org; Mon, 18 May 2020 18:08:21 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1janvo-0007ql-79; Mon, 18 May 2020 18:08:21 -0400 Original-Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 218582811; Tue, 19 May 2020 00:08:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589839697; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=1157; bh=w9lW7Dlt0vD0FOpiNhoYt9174+DiU/kRlZsIH3yWzfA=; b=XzskPkUTnRCuQ46uCAofd/lcaesDg00/7Og6GxBoOyb/c52boW6PcYbTSqNkv4so b+/xIB1kusxwq0MBqRW01wxqIswrVcrPXgxw0XInBBhMGXA8wPr+JJuKaiygwNJhjrr u3EbCL9j/TnANhh5cMtopgcBqFFg7rY+0RR29Y6zVYbQrsBysZDBCu6EaFHW7n8ZqRk a9a1zgnpRtTcOw/ngQ8oEYdCau7jioovameGfo/SuyxE+S6Mali3bStqSdnAT6r/Be9 hHUyClUT/4E6LP5/O74ERrb7A/P7NOAUMJ/pJudAt2lDnWy2OBYcB8Iyp1WlEXqL/5H ZcIpNu1QOQ== Original-Received: by smtp.mailfence.com with ESMTPA ; Tue, 19 May 2020 00:08:13 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 7C2642022DE16F; Mon, 18 May 2020 23:08:12 +0100 (BST) Mail-Followup-To: Alan Third , Julius Pfrommer , Eli Zaretskii , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <20200517202802.00006646@web.de> X-ContactOffice-Account: com:241649512 Received-SPF: pass client-ip=212.3.242.97; envelope-from=alan@idiocy.org; helo=mailout-l3b-97.contactoffice.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/18 17:59:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:250836 Archived-At: On Sun, May 17, 2020 at 08:28:02PM +0200, Julius Pfrommer wrote: > > I don't think the answer will be full and definitive until "Someone" > > walks through all the APIs we implement in x/w32/ns/fns.c and > > x/w32/ns/term.c, and makes sure they all can be covered. > > Looking at xterm.c, it is littered with #ifdef USE_CAIRO. > > A first step could be to assume Cairo on X-based platforms and remove > duplicate code. 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. It may be worth your while looking into the PGTK port that some people are working on: https://github.com/masm11/emacs I believe it will be using pure Cairo rendering which may make this project a bit easier. -- Alan Third