From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Text shadows Date: Sun, 12 Mar 2023 13:33:32 +0200 Message-ID: <838rg2urub.fsf@gnu.org> References: <72650A07-DEC8-4E08-A524-5C7AF804F3CB@gmail.com> <83mt4iv3xa.fsf@gnu.org> <83edpuuy9j.fsf@gnu.org> <818EE19C-BF0F-4EB9-802F-C9BDBD280E03@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Kai Ma Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 12 12:34:26 2023 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 1pbJy6-0002ml-S3 for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Mar 2023 12:34:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbJxV-0004Kj-VP; Sun, 12 Mar 2023 07:33:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbJxS-0004Jg-61 for emacs-devel@gnu.org; Sun, 12 Mar 2023 07:33:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbJxR-0003dr-ER; Sun, 12 Mar 2023 07:33:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=3RZ9U5YmTG1cWvwKMXRa1qQSrWiyNjHzpvE0ig+0iYs=; b=lFz4RAd+StVicVsJl7P/ ifCKOPx6FY1uljK/oHlLj8Bveai5ELTKiSsYDDhbOcyiGCcCyPe30+MSV9JGR0JN4qpMOQNf3BEO7 J28JVr+XdpjmN9JF8UTAPF2FdVTuImgoNjnKib6lKyX5b+INxeLXjO1e55lNPwAyQlRLCk/jy78pG Vuxdj1RQX4d2FTtmzLxdDNcmwx5jBizH6T3SdhbQXnO0bu8CgcwcA6FPLVsSMpe0a33Cv2Ur6NE/2 Wysy8SUaUC0nX+vryPZL2f+lCbq0nSJNZwiB349xEPlGxzWqJHdTwX/8S+9z80hYcNPCIXF1g+9/a 9bslfPgKPWgOEQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbJxQ-00081K-UH; Sun, 12 Mar 2023 07:33:45 -0400 In-Reply-To: <818EE19C-BF0F-4EB9-802F-C9BDBD280E03@gmail.com> (message from Kai Ma on Sun, 12 Mar 2023 17:55:01 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304361 Archived-At: > From: Kai Ma > Date: Sun, 12 Mar 2023 17:55:01 +0800 > Cc: emacs-devel@gnu.org > > At worst, perhaps it would be good enough not to support blurring on > some platforms, or support it by some minor modification of the color? > Or maybe we could implement the equivalent of gaussian_blur in our > code? > > This is already the case: Cairo does not provide a Gaussian blurring function, so I wrote one (named > gaussian_blur) in xcairo.c. It is an approximation, not the “True Gaussian Blur”, like Moz2D’s > implementation. It only uses one CPU core, but is fast enough for me. I thought you said gaussian_blur required some Cairo-only extension? That's why I wrote the above.