ionic-team / ionicons

Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
http://ionicons.com
MIT License
17.59k stars 2.07k forks source link

feat: add ability to use ionicons as icon font #1139

Open Simbaclaws opened 2 years ago

Simbaclaws commented 2 years ago

Describe Problem

When viewing the latest cheatsheet for ionicons, there is no glyph that one can copy and paste like fontawesome does in their cheatsheet...

Example from fontawesome: glyph

Describe Preferred Solution

I would like to see an option to copy the glyph character in the cheatsheet found on: https://ionic.io/ionicons

Describe Alternatives

No response

Additional Information

A reason I want to have this, is for whenever I have ionicons installed on something like my operating system, I'd be able to just copy and paste them into text editors and document editors.

Apparently version 2 of ionicons had this in the cheatsheet. But then I'd have to download the exact same version ionicons TTF font. This doesn't count for the latest cheatsheet.

liamdebeasi commented 2 years ago

Hey there,

Can you clarify what you are trying to do? Ionicons ships as SVG instead of icon fonts, so I am not sure this is possible with the current setup.

Simbaclaws commented 1 year ago

Then wat is docs/fonts/ionicons.ttf?

liamdebeasi commented 1 year ago

It looks like that is an old version of Ionicons v4 that should not be in our repo anymore. With Ionicons v5 we switched to using SVG: https://ionic.io/blog/announcing-ionicons-5

Simbaclaws commented 1 year ago

Well I'm using that TTF font in some of my document editors that I then convert to PDF. It would be nice if I could copy the glyphs, but since it isn't officially supported I suppose I'll have to make do with manually finding the icons.

Personally I would love to see some support for adding the TTF font + glyph to the cheatsheet, but I don't know how much that feature would be requested by others.

Or I would have to add the icons to my documents through SVG, that is also a posibility, but a lot more annoying to work with in document editors.

Obviously this is a niche use-case.

liamdebeasi commented 1 year ago

I can mark this as a feature request for icon fonts and collect feedback from the community.