Re: [PATCH v2] emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays

Subject: Re: [PATCH v2] emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays

Date: Fri, 17 Dec 2021 00:10:41 +0200

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Thu, Dec 16 2021, David Bremner wrote:

> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
>> emacs/notmuch-logo.svg is handcrafted scalable vector graphics version
>> of the notmuch logo.
>>
>> Emacs on graphic displays render this image four times in size compared
>> to the emacs/notmuch-logo.png, and the image is much sharper.
>>
>> The rendered image size, 100x110 pixels, fits reasonably well with
>> text shown in various font sizes.
>>
>> Scaling the image -- if desired -- may come in the future. For now
>> this is improvement on how the logo looked in notmuch-hello window.
>
> I wish it was possible to scale in units relative to text size. For me
> with default settings it looks a bit big (see attached). Anyway, I can
> live with this (not least since I don't normally display the logo).

Nice font, is that 20 pixels in height ? (and what font is it ?)

> Anyone else want to chime in before I apply this change?

I personally tried with 12x25 sized font (xrandr tells 1920x1200, 
294mm x 165mm so what is that in dpi...) -- and it could be that
majority of users uses smaller font so it could look a bit tall.

Let's wait for a while for more comments.

In the meanwhile, after sending the patch email, I noticed that the
.png is 50x58 in size and .svg 110x100 (I accidentally swapped 
dimensions). So now I tried to drop 10 pixels from bottom (making
it 100x100) which makes it look a bit more like the original. 

The modified image is available below; the html "decoration" is 
for your entertainment: copy the whole content into a file.html, 
open file://$PWD/file.html in your web browser -- if web browser
is firefox, ctrl-+ and ctrl-- scales the image... 

Tomi

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
    background-color: #777;
}
</style>
</head>
<body>


<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     height="100" width="100" fill="#000" stroke-width="1">
  <circle cx="50" cy="5" r="5" />
  <g transform="translate(50 20) rotate(20)">
    <circle cx="-47" cy="0" r="3" />
    <circle cx="47"  cy="0" r="3" />
    <path d="M-47 -1  L0 -3  L47 -1 L47 1  L0 3  L-47 1 Z" />
  </g>
  <path d="M49 4  L45 90
     A5 5  0  0 1  40 95  L20 95  A5 5  0  0 0  15 100
     L85 100
     A5 5  0  0 0  80 95  L60 95  A5 5  0  0 1  55 90
     L55 90  L51 4 Z" />
  <g fill="#fff" stroke="#000">
    <rect x="7" y="33" width="30" height="18" />
    <line x1="7"  y1="51" x2="18" y2="41" />
    <line x1="37" y1="51" x2="26" y2="41" />
    <polyline points="7 33  22 44  37 33" fill="none" />
  </g>
  <path d="M-18 0  A25 20  0  0 0  18 0" transform="translate(22 51)" />
  <path d="M-18 0  A25 20  0  0 0  18 0" transform="translate(78 72)" />
  <g fill="none" stroke="#000">
    <path d="M9  52  l13  -42  l13  42" />
    <path d="M91 73  l-13 -42  l-13 42" />
  </g>
</svg>


</body>
</html>
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: