larsenwork / monoid

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

"Wrapping" ligatures in spaces #124

Open larsenwork opened 8 years ago

larsenwork commented 8 years ago

I'm starting to "wrap" ligatures in spaces to avoid current problems like this: screen shot 2015-08-11 at 19 02 01

Some ligatures can only have space to one side though and maybe some ligatures can't have spaces at all?

e.g. `<`! - - `won't work but<`! - - will

If you can see other examples like this amongst current ligatures then please let me know :)

larsenwork commented 8 years ago

other examples include mm ligature that can have no spaces and end html comment that can only have a leading space `-`- >

mikebronner commented 8 years ago

Was just thinking we should throw together a ligature test page that has various code snippets where the ligatures would be used. We could quickly load that in different editors to see how it looks.

larsenwork commented 8 years ago

@mikebronner would be cool - difficult to cover "everything" so I think doing some more conservative ligatures (i.e. wrapped in spaces) is a good approach. Then if people want the ligatures to work without spaces we can also "loosen up".

larsenwork commented 8 years ago

What I'm currently doing is using http://symbolhound.com and searching for the ligatures in the font I've yet to use myself to see what context they're used in to see if they can be wrapped in spaces