emacs-devel
[Top][All Lists]
Advanced

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

Re: Using more and/or better icons in Emacs


From: Stefan Kangas
Subject: Re: Using more and/or better icons in Emacs
Date: Fri, 9 Apr 2021 12:46:57 -0500

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 09.04.2021 15:22, Stefan Kangas wrote:
>> all-the-icons.el does distribute TTF fonts, but IIUC that's simply
>> packaged up versions of free sets that were originally distributed in
>> SVG.
>>
>> So what I meant was that we could look at what sets they are linking to,
>> get the original SVG files and then use those.  That's what I did for
>> the Material icon toolbar mock-up.
>
> Ah, that's a very good idea.

For this to work, we obviously need to insert SVG files that are the
same height as the current face.

Experimenting with this now, using my patch,

(insert-image (find-image '((:type svg
                             :file "material/file/ic_folder_24px.svg"))))

I'm getting an SVG in the buffer that is actually taller than the line.
When we added new SVG icons to customize recently, Alan Third fiddled
with the height and viewport in the SVG file to force it to be the same
height as the line.

But is there any way to do this directly from Emacs?  It seems like a
pain to have to edit the SVG file for every icon (and my attempts at
doing so has failed so far...).

In a web browser, I think you would just set the CSS width and height
to whatever you want and the browser would resize the image to fit.



reply via email to

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