From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Support text-shadow on for Emacs face Date: Fri, 22 May 2020 16:34:47 +0300 Message-ID: <18b68d3b-32fb-33fb-9c8b-87d65c7e753e@yandex.ru> References: <87ftbsqjwx.fsf@gmail.com> <2a66b8ec-5773-d55e-29ef-af9c322abbd0@yandex.ru> <83mu602ldy.fsf@gnu.org> <218c9f2b-8842-8f09-8144-925ead279419@yandex.ru> <83imgo2kk1.fsf@gnu.org> <6d6035cb-813d-bfab-ba49-ae5010b33074@yandex.ru> <83eerc2jli.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="8789"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: numbchild@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 22 15:35:27 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 1jc7pe-00029p-8E for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 15:35:26 +0200 Original-Received: from localhost ([::1]:53380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc7pd-0005D7-Ac for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 09:35:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc7pA-0004n7-Nx for emacs-devel@gnu.org; Fri, 22 May 2020 09:34:56 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:36481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc7p6-0007iL-Ur; Fri, 22 May 2020 09:34:56 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id u188so9844860wmu.1; Fri, 22 May 2020 06:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rwXx/kt4WwwCQEfGVFBusDb9PsDqncF4jsQtDd6Ew8E=; b=jRuZkPTqmoBGhGX0/1Uh8b6HLGxQ9NFKEzX92Vdx/KDlQYtyndeAM9971/H0kmkzSl wUTMAivHJSdhitiX7hJLnA5cEUHQk9bTZcgkHK+zN8OSshq9EK5GXY3rTPfgm5L9d/Qv SftkIHpo0N+6O3aSUsrfts3TkGtDHEWlnM7aZ5bd3tAgfCnQN0u8wFOD1I1y/LRRx1hA IhJ6KeSsMdx6UF6B6uk+kvm1g2/OjWH3brDkDl6FA1Ivo7k9UVgNlzfqHoGPvOMkDijM OrBdZUuaZj6sbh7d1iBmqYWXA8FjF09ocyPvn20znaUIsKBx76CcuA3y30jXRaw00A4i bR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rwXx/kt4WwwCQEfGVFBusDb9PsDqncF4jsQtDd6Ew8E=; b=F52F9oOVcP3EPedf8baUpD3swaX/F1jBl7k7+YYlu+1pkiXCdWdFQLCb/mPCCipNUj 1Ph3Gj3F2bUHEw6amUtihxvKUq8Z/4RvZjZ/pRdDtk8nERIQVnLhum6BJ7vCJzG5fFud p73oFRdKHGM8aE3JUBvA00hJvJB3JT/gJeUgVIM15i8FIR40UFd0kVGeEJZoeotSh6k9 LybPH5x9eqRLBhbWYo+ynJjAgEsDS6P5L1vLiJdghsXQ6WFPR68FOAaqrWI/tAq2J9pl t/vF65yF2RBealgGuYdtr0clR7nHlL4KzZAy93cpYSKIVRbN6bPdsdYv4/xldEu8nnHm 3eQg== X-Gm-Message-State: AOAM531NgSrqjRj5T22oNEaB59OmR5FzG0CJ4iPMV4n0Ezwo2Okxi9HM YdnD3BkTCu/KAwHEXZbPjgunTop6 X-Google-Smtp-Source: ABdhPJyeIyh14f/SMlsHy3x4SaOySBDSA/U9nXsoB0dKWIQBqIh83lssXfvPr17CaxfULuekW6CKcA== X-Received: by 2002:a1c:5606:: with SMTP id k6mr14187008wmb.10.1590154490768; Fri, 22 May 2020 06:34:50 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id r11sm10095740wma.35.2020.05.22.06.34.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 06:34:49 -0700 (PDT) In-Reply-To: <83eerc2jli.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=raaahh@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, 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:251227 Archived-At: On 22.05.2020 16:19, Eli Zaretskii wrote: >> Cc: numbchild@gmail.com, emacs-devel@gnu.org >> From: Dmitry Gutov >> Date: Fri, 22 May 2020 16:06:26 +0300 >> >> On 22.05.2020 15:58, Eli Zaretskii wrote: >>>> And here's the design document, I guess: >>>> https://github.com/ksqsf/emacsmoe/wiki/Text-Shadow >>> I only see macOS-specific changes there. >> >> You mean the implementation section? Indeed. The original message in >> this thread said as much. > > But the text there says there should be changes in xfaces.c etc. I > wonder how can I see those changes. They're inside the PR, already linked to in the original message. Here, at the bottom: https://github.com/ksqsf/emacsmoe/pull/1/files Whether you should read it, I don't know, considering there's no copyright assignment, and someone might have to re-implement the code. But the changes are not particularly long or surprising. >> "cairo text shadow" gives some results on web search, though. This one >> looks the most credible: >> https://lists.cairographics.org/archives/cairo/2010-September/020915.html >> >> It's old, though, and the links inside seem to have died. Want me to >> hunt them down? > > Given the description, I'm not sure it's worth our while, Perhaps you meant "patches welcome"? > but if you > can find the patches without investing too much time, it will be > appreciated. Thanks. There is no ready patch for Emacs for this part. One is "how Firefox implements text-shadow". Apparently, this is how it's done these days: https://searchfox.org/mozilla-central/source/gfx/thebes/gfxBlur.cpp And the second example lives here now: https://github.com/syndicodefront/infekt/blob/master/src/lib/cairo_box_blur.cpp