larsenwork / monoid

Customisable coding font with alternates, ligatures and contextual positioning. Crazy crisp at 12px/9pt. http://larsenwork.com/monoid/
7.86k stars 170 forks source link

Monoisome #98

Open larsenwork opened 9 years ago

larsenwork commented 9 years ago

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 commented 9 years ago

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

mikebronner commented 9 years ago

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.

larsenwork commented 9 years ago

@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 commented 9 years ago

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

mikebronner commented 9 years ago

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

larsenwork commented 9 years ago

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

larsenwork commented 9 years ago

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 commented 9 years ago

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

larsenwork commented 9 years ago

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.

mikebronner commented 9 years ago

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.)

larsenwork commented 9 years ago

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

screen shot 2015-07-31 at 11 04 30

larsenwork commented 9 years ago

Closing this for now, as it seems to work well

mikebronner commented 9 years ago

Awesome! Is it available in the latest version already?

larsenwork commented 9 years ago

website

mikebronner commented 9 years ago

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).

larsenwork commented 9 years ago

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

mikebronner commented 9 years ago

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

mamartins commented 8 years ago

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 !==

boazblake commented 7 years ago

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

larsenwork commented 7 years ago

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 :)

mikebronner commented 7 years ago

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.)

boazblake commented 7 years ago

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 notifications@github.com 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 .

mamartins commented 7 years ago

I'm still using this font :)

Samoht1 commented 3 years ago

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