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: Alan Third
Subject: Re: Using more and/or better icons in Emacs
Date: Fri, 9 Apr 2021 20:40:53 +0100

On Fri, Apr 09, 2021 at 08:30:14PM +0100, Alan Third wrote:
> Something like
> 
>     (insert-image (create-image "my/svg/file.svg" 'svg nil
>                    :height (line-pixel-height)
>                    :ascent 'center))
> 
> Although it won't tie in quite as neatly as having the actual SVG
> height set to 1em or whatever.

... and if you want the actual text height instead of line height it's
more complex, have a look at scale and height in this:

    https://gist.github.com/alanthird/7b86dc66df1ed3b9006bcd3fddd7350f

although there's probably a better way of doing it.
-- 
Alan Third



reply via email to

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