nerd-fonts icon indicating copy to clipboard operation
nerd-fonts copied to clipboard

Add icons for Emacs and Orgmode

Open ashfinal opened this issue 2 years ago • 7 comments

Description

Add icons for Emacs and Orgmode.

Requirements / Checklist

What does this Pull Request (PR) do?

I used Inkscape to edit the SVG files, then imported them into Fontforge. In the meanwhile, I uploaded the SVG files to IcoMoon to see if they triggered any warnings. And add them to original-source.otf as e532 and e533. Also, I update font-patcher to include new icons in patched fonts.

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Closes #342

Similar PR #429

Screenshots (if appropriate or helpful)

Changes in original-source.otf

fontforge

Patched font:

kfontview

Nvim with patched font:

nvim_devicons

Let me know if I miss something. Thanks!

ashfinal avatar May 20 '22 23:05 ashfinal

Technical remark:

@ryanoasis I do not see how the src/svgs/ are converted to the original-source font. Is that really manual? Should maybe automated with for example font-custom and a fixed-codepoint configuration.

Additionally there is at least one glyph in original-source that is not in src/svgs/, origin unclear:

image

On the other hand src/svgs/go.svg is not included.

P.S. Oh man is font-custom old :->

Finii avatar May 21 '22 07:05 Finii

I think the orgmode svg is needlessly detailed (and thus big in file size). Maybe it can be simplified?

See also https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#3-optimize-the-icon

Just a gut feeling.

Finii avatar May 21 '22 07:05 Finii

Ah, and ... thanks for the contrib :-)

Finii avatar May 21 '22 07:05 Finii

I think the orgmode svg is needlessly detailed (and thus big in file size). Maybe it can be simplified?

Good idea! I managed to reduce the size of orgmode using SVGO. (from 16.2 KiB to 5.5 KiB) Also I updated original-source.otf.

Let me know if I miss something. :)

ashfinal avatar May 21 '22 09:05 ashfinal

:smile_cat: I actually optimized SVGs before filing this PR. But there is a --precision argument I overlooked. Obviously orgmode svg could be smaller. As for emacs svg, I don't see much sense in this.

how the src/svgs/ are converted to the original-source font. Is that really manual?

I think that's manual. src/svgs is not much important, as you can easily export svgs from Fontforge. IMO, IcoMoon acts like some kind of QC measure in case your svgs are too complicated to be understood by IcoMoon. But I'm new to this project, I may be wrong. :smiley:

ashfinal avatar May 21 '22 13:05 ashfinal

how the src/svgs/ are converted to the original-source font. Is that really manual?

I think that's manual. src/svgs is not much important, as you can easily export svgs from Fontforge

It's the other way around. This repo should aim to assemble all its parts from the basic building blocks (in this case the svgs.). Any manual steps are a burden and should be replaced by CI jobs. That was just a nudge for Ryan ;)

Finii avatar May 21 '22 16:05 Finii

Any update here?

iris-garcia avatar Jul 21 '22 13:07 iris-garcia

Any reason why you didn't go for a simplified version of the Org logo? E.g.

org-mode-simplister

tecosaur avatar Sep 08 '22 15:09 tecosaur

Any reason why you didn't go for

Who is 'you'? :-)

I dont even know what orgmode is. Answer is: Noone suggested that. What do orgmode users prefer/expect?

Finii avatar Sep 08 '22 16:09 Finii

Who is 'you'? :-)

You = the author of the PR.

The merged version is the full-detail outline, but as I think of nerd-font being used at smaller sizes I wonder if a simplified form would be more appropriate. When re-doing the website (https://orgmode.org) last year, I created a range of detail levels of the logo. The reduced-detail version I shared above is now used in the file-icons package as of https://github.com/file-icons/icons/pull/88.

tecosaur avatar Sep 08 '22 16:09 tecosaur

Thanks! I will try to come up with a PR.

Finii avatar Sep 08 '22 17:09 Finii

Cool. If you do whip up a PR from this, you'll probably be most interested in file-icons' optimised path version: https://raw.githubusercontent.com/file-icons/icons/master/svg/Org-Mode.svg.

tecosaur avatar Sep 08 '22 17:09 tecosaur

Want to have a look before I merge? I'm not sure with the aspect ratio, looks a bit 'wide' in original-source.otf, but that might be normal for that unicorn :-)

image

Great job with the simplified icon, btw :+1:

Edit: Add where it looks a bit wide, the SVG is just a copy, but I scaled it up in ff Edit: Add image, ... maybe just imagination

Finii avatar Sep 08 '22 18:09 Finii