From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kai Ma Newsgroups: gmane.emacs.devel Subject: Re: Text shadows Date: Sun, 12 Mar 2023 19:49:40 +0800 Message-ID: <9F5BA7F8-BB8A-4FF0-AC23-E249C7D471B5@gmail.com> References: <72650A07-DEC8-4E08-A524-5C7AF804F3CB@gmail.com> <83mt4iv3xa.fsf@gnu.org> <83edpuuy9j.fsf@gnu.org> <818EE19C-BF0F-4EB9-802F-C9BDBD280E03@gmail.com> <838rg2urub.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 12 12:50:46 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 1pbKDu-0003eP-6r for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Mar 2023 12:50:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbKDB-00086l-4t; Sun, 12 Mar 2023 07:50:01 -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 1pbKD9-00086O-Ak for emacs-devel@gnu.org; Sun, 12 Mar 2023 07:49:59 -0400 Original-Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbKD7-0006Bq-Ph; Sun, 12 Mar 2023 07:49:59 -0400 Original-Received: by mail-pj1-x1042.google.com with SMTP id y15-20020a17090aa40f00b00237ad8ee3a0so9105210pjp.2; Sun, 12 Mar 2023 04:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678621795; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vA6kjwd2B8WmSbndYaNmO2P0+WTQuQqdum+dbqyqFbQ=; b=JchH0p5JW3KlUNvYekI1X9vqC/8ob6gXYD0ennC9PsZ00QFuSPGicQJI6DUVzDfq+j m6CvI5RtQDFEuyrPODoxEE9HX6WPOzFV+wsEViJI8snatR/wRTUMxY3mmWPiTfcHx0JM FS4eQnGVciD2rPS1aDt90JA1+8i72m+NeJIVxcMuBXqm2j5dFciHvs5oUx/VJgCDtD8f 5cavK/J2EmBHaVQPQgf9Tg+Cwbx3V1WwldiGYumdNSDBzJjxmnF3jxMDmELdYCqRy8A8 fxD8PHiHcH8P7EdirCuJ+mBzmJdD8xeP8za7/+W54upGZbGolO2Jp2+gFLbxcM49NBwf LHpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678621795; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vA6kjwd2B8WmSbndYaNmO2P0+WTQuQqdum+dbqyqFbQ=; b=oSOrgGGQrRUD2QKD+zmd/Wi4aadEXiJC+eR19q/QfLieVP3b4oXz0QUhSjdt+aE1UX UHL0ebtS/XSuKcaV0bT7RQ19SwWBy6RXqWq4XrAQf917bvd4/jnbzazAutnH/Qn1jfBc rU9tTdz5LeIL0c6jUFz6+Ly14g9E2hraHDGNC5qkW3MxNKI4i0RPHfA+oGMBnEqs8/Ts uZpF/LNx7Xu4sSH5vlZ3E0zRqYpM1XQYCIuaJk3wuEKGoeukVbHGJ7VJXiNfOr10TjXM OGrdnQdAqG3zT7NwgRpYc7CUtaQdGAoUqb7ct9Bk5wUCKFZ6uIbb3zD91oW4bnjipIec 9y8g== X-Gm-Message-State: AO0yUKW7LSQ9Exc362RoDjSteexU9UsDdRqh2KmTMLKlRqTGeOHR90p4 A68TTUPPQy9gFIqk9/l/TXbh+A7cNRNe/8n+a9M= X-Google-Smtp-Source: AK7set+4nMgK3blM5/Vel5NT5EdYDyRnnFDXYgpHzKHoWBM9gC0VP11TJbekV8A5LLofqXjErm4grQ== X-Received: by 2002:a17:90b:1e03:b0:239:d623:16cd with SMTP id pg3-20020a17090b1e0300b00239d62316cdmr7487487pjb.9.1678621795440; Sun, 12 Mar 2023 04:49:55 -0700 (PDT) Original-Received: from smtpclient.apple (n058153171249.netvigator.com. [58.153.171.249]) by smtp.gmail.com with ESMTPSA id n13-20020a17090a928d00b002341c0ff245sm2695391pjo.19.2023.03.12.04.49.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2023 04:49:54 -0700 (PDT) In-Reply-To: <838rg2urub.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1042; envelope-from=justksqsf@gmail.com; helo=mail-pj1-x1042.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:304362 Archived-At: > On Mar 12, 2023, at 19:33, Eli Zaretskii wrote: >=20 >> From: Kai Ma >> Date: Sun, 12 Mar 2023 17:55:01 +0800 >> Cc: emacs-devel@gnu.org >>=20 >> 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? >>=20 >> 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 =E2=80=9CT= rue Gaussian Blur=E2=80=9D, like Moz2D=E2=80=99s >> implementation. It only uses one CPU core, but is fast enough for = me. >=20 > I thought you said gaussian_blur required some Cairo-only extension? > That's why I wrote the above. Sorry if my words were misleading. I didn=E2=80=99t intend to say that. gaussian_blur right now only works on Cairo surfaces, but it=E2=80=99s = easy to change.