unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: numbchild@gmail.com, Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Support text-shadow on for Emacs face
Date: Sat, 23 May 2020 08:56:50 +0800	[thread overview]
Message-ID: <878shjbh9p.fsf@gmail.com> (raw)
In-Reply-To: <18b68d3b-32fb-33fb-9c8b-87d65c7e753e@yandex.ru>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Yes, I'm think this is a great feature for Emacs. It will make Emacs looks
awesome in some places.

Dimitry, I also found your first replied VS Code's theme screenshot. It looks
great! right.

That's why I hope Emacs can have this too.

I don't know C/C++ programming, but I checked my posted patch's source code,
it's not long. I think it might nor hard to implement in Emacs on Linux. Maybe
other operating system platforms.

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 22.05.2020 16:19, Eli Zaretskii wrote:
>>> Cc: numbchild@gmail.com, emacs-devel@gnu.org
>>> From: Dmitry Gutov <dgutov@yandex.ru>
>>> 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


- -- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      
-----BEGIN PGP SIGNATURE-----

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7IdNIUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNwygf6A3KmMvcyqXmb45g24MznKKqptTfy
xq+sajFBMow8Q/8xH5Qo8aWsgUgJuOwNdiO9edr7dBVFQ77Uu9V0Klest8KGQ/bZ
IhQYvpjVkE9gjAACUK4LPeG8TEb1pfOxnjAsMbNvZnjdQ22dt1NdY8xmrGpblzku
/cQngiBAU93KhXUWylyVyWaBg1ptl8YtLloGJGPcfavqU7ty9m6PuXsfmF/Puv27
5RTGEI63KdVApDvZPg0vCIWWEv6ZZZCNLp1f6rRwtz59S9kFm/0SyC96884CFBcR
xhd5isz64Fjw762hwXv1ff/4qBdja8TR0X5AsVsByBttmzuyDHF4jz44/Q==
=JM+c
-----END PGP SIGNATURE-----



  reply	other threads:[~2020-05-23  0:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22 11:38 Support text-shadow on for Emacs face stardiviner
2020-05-22 12:28 ` Dmitry Gutov
2020-05-22 12:40   ` Eli Zaretskii
2020-05-22 12:44     ` Dmitry Gutov
2020-05-22 12:58       ` Eli Zaretskii
2020-05-22 13:06         ` Dmitry Gutov
2020-05-22 13:19           ` Eli Zaretskii
2020-05-22 13:34             ` Dmitry Gutov
2020-05-23  0:56               ` stardiviner [this message]
     [not found]               ` <83k11316af.fsf@gnu.org>
2020-05-23 11:51                 ` Dmitry Gutov
2020-05-23 12:34                   ` stardiviner
2020-05-25  4:34                     ` Richard Stallman
2020-05-25 10:50                       ` stardiviner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878shjbh9p.fsf@gmail.com \
    --to=numbchild@gmail.com \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).