emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text shadows


From: Kai Ma
Subject: Re: Text shadows
Date: Sun, 12 Mar 2023 19:49:40 +0800


> On Mar 12, 2023, at 19:33, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Kai Ma <justksqsf@gmail.com>
>> 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.

Sorry if my words were misleading.  I didn’t intend to say that.

gaussian_blur right now only works on Cairo surfaces, but it’s easy to change.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]