monoid icon indicating copy to clipboard operation
monoid copied to clipboard

Monoisome

Open larsenwork opened this issue 9 years ago • 24 comments

I've just realised http://fontawesome.io uses the same grid as Monoid. This would make it fairly easy to create a version of Monoid that includes all the Font-Awesome icons as ligatures.

This would obviously increase the file size too much for it to be part of the default Monoid font. It would look something like this:

screen shot 2015-07-30 at 13 07 51

I've asked @davegandy on twitter so awaiting his reply. https://twitter.com/larsenwork/status/626711927989895168

¯\_(ツ)_/¯

larsenwork avatar Jul 30 '15 11:07 larsenwork

Brackets and Atom both currently have problems with calculating line length but this will hopefully be fixed soon:

screen shot 2015-07-30 at 13 59 29 screen shot 2015-07-30 at 14 02 24

(I'm disabling ligatures for cursor line in Atom which is why there's no 👍 there

larsenwork avatar Jul 30 '15 12:07 larsenwork

I LOVE this!!!!! (haven't installed it yet, but the idea is genius) Makes the code so much more expressive -- you see right away which icon you get.

mikebronner avatar Jul 30 '15 14:07 mikebronner

@mikebronner yep, I need some help to make this happen though as I don't have the time right now. Wanna help? It's very easy and should only take an hour or two.

larsenwork avatar Jul 30 '15 16:07 larsenwork

You just need to download Fontforge to see the glyph names

screen shot 2015-07-30 at 18 14 05

and then write them in the text file

screen shot 2015-07-30 at 18 18 06

larsenwork avatar Jul 30 '15 16:07 larsenwork

Absolutely would love to help will start when I get back to the office tonight

mikebronner avatar Jul 30 '15 17:07 mikebronner

Perfect, I'll upload the files in a minute.

larsenwork avatar Jul 30 '15 19:07 larsenwork

Some notes:

I'll created a branch that we are working in and then we can merge to master once it's done. The text file is called a feature file and can be edited in any code/text editor.

Fontforge: http://fontforge.github.io

The format (sfdir) is a folder so you open it in FontForge not by double clicking but by selecting and clicking "OK".

Sometimes an icon has two aliases e.g. indent_left which is both fa-dedent and fa-outdent

  sub f a hyphen d e d e n t by indent_left;
  sub f a hyphen o u t d e n t by indent_left;

I've removed all Monoid ligatures - I'll re-add them once the Awesome part is working.

I've switched to "compact" encoding - I'll switch back to UTF-8 once the Awesome part is working.

I've added and adjusted all the icons, written the first 100+ ligatures so what is left is to write the rest of the glyph names in the .fea file.

Don't be too thorough - I can quickly see if there are any errors when importing the feature file.

And please don't hesitate to ask if you have any questions!

larsenwork avatar Jul 30 '15 19:07 larsenwork

I've also had to rename e.g. plus, minus and asterisk as those names are already used in a normal font.

larsenwork avatar Jul 30 '15 19:07 larsenwork

All yours: https://github.com/larsenwork/monoid/blob/Monoisome/Monoisome/Monoisome.fea#L117

Just generated the font to test the size: 230kb so definitely not going in the build scripts.

larsenwork avatar Jul 30 '15 20:07 larsenwork

Regarding the naming: I would recommend including the fa- in the name, so as not to conflict. Especially if we add Glyphicons, or other icon sets that are commonly used. (To quasi namespace icon sets.)

mikebronner avatar Jul 30 '15 22:07 mikebronner

Good idea - let's do that if/when we add other icon fonts :+1:

screen shot 2015-07-31 at 11 04 30

larsenwork avatar Jul 31 '15 09:07 larsenwork

Closing this for now, as it seems to work well

larsenwork avatar Jul 31 '15 16:07 larsenwork

Awesome! Is it available in the latest version already?

mikebronner avatar Jul 31 '15 17:07 mikebronner

website

larsenwork avatar Jul 31 '15 17:07 larsenwork

Got it ... so to use it effectively, this replaces the Monoid-Regular.ttf, right? (Otherwise I don't have bold or italics if I leave it named Monoisome).

mikebronner avatar Jul 31 '15 17:07 mikebronner

I'd imagine most editors that support ligatures also let you pick different font families for bold/italic?

larsenwork avatar Jul 31 '15 17:07 larsenwork

Unfortunately that doesn't seem to be the case with any of the editors I tried.

mikebronner avatar Jul 31 '15 18:07 mikebronner

I can confirm that on VScode and Atom the problem still occurs :(

Also some code ligatures are not working. For eg == works but === don't same for !==

mamartins avatar Feb 18 '16 21:02 mamartins

Have only tried in atom - can not get monoisome font or the equality lit's to work either

boazblake avatar Feb 21 '17 14:02 boazblake

Ok, not sure how much time I'll spend on fixing it though since I haven't used font-icons in over a year and maintaining something like font awesome that luckily very few still use... I'd rather focus on creating new and better stuff :)

larsenwork avatar Feb 21 '17 15:02 larsenwork

I think font-awesome has one of the best adoptions, seeing how well their FontAwesome 5 Kickstarter campaign went. But yes, there are more and more alternatives popping up all the time. (I'm just chiming in here because I was helping with this. I have to admit I have not been using Monoisome either -- I do use FontAwesome on a daily basis, but regrettably I have been using a different font for development use.)

mikebronner avatar Feb 21 '17 16:02 mikebronner

I am using fira-code for now - but I am very interested in checking out Monoid and Monoisome

On Tue, Feb 21, 2017 at 10:04 AM Mike Bronner [email protected] wrote:

I think font-awesome has one of the best adoptions, seeing how well their FontAwesome 5 Kickstarter campaign went. But yes, there are more and more alternatives popping up all the time. (I'm just chiming in here because I was helping with this. I have to admit I have not been using Monoisome either -- I do use FontAwesome on a daily basis, but regrettably I have been using a different font for development use.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/larsenwork/monoid/issues/98#issuecomment-281388501, or mute the thread https://github.com/notifications/unsubscribe-auth/ADqEMzJbzfxdjGU_gLXYJPKDxqKn2KaOks5rewsTgaJpZM4FisBj .

boazblake avatar Feb 21 '17 17:02 boazblake

I'm still using this font :)

mamartins avatar Feb 21 '17 17:02 mamartins

I'd love a fix to use bold with monoisome :)

Samoht1 avatar Sep 14 '21 13:09 Samoht1