spenserblack / gengo

A linguist-inspired language classifier with multiple file source handlers
Apache License 2.0
20 stars 10 forks source link

Track NerdFont glyphs for languages #341

Closed spenserblack closed 6 months ago

spenserblack commented 6 months ago

This could be a fun bit of data for each language.

Inspired by https://github.com/o2sh/onefetch/issues/1308

hasecilu commented 6 months ago

I have a list there EDIT: here it is but there are more languages icons that are not still supported in onefetch:

spenserblack commented 6 months ago

This is fantastic work! I haven't used NerdFonts, is there a resource where I can look up the glyph codes to see how they look rendered?

Also, feel free to start a PR editing languages.yaml with these. Preferably the glyphs should be represented with unicode escapes (\u1234) for example.

hasecilu commented 6 months ago

You can copy the char in https://www.nerdfonts.com/cheat-sheet to get a preview, also search a term to get icons. I use the file from https://github.com/ryanoasis/nerd-fonts/wiki/Font-Substitution-&-Fallback , Linux section, on my fontconfig (~/.config/fontconfig/fonts.conf) file and thanks to that I have preview in the browser without needing another tweak. image