Closed chase closed 9 years ago
I think it's enough just to remove the liga + calt Single substitution ones are only called through liga and calt (if you look in font.props you can see that the single substitution ones have no script/language specified)
Right, gsub_lookups just lists all possible lookups. There isn't a real way to query it, so I have to chug through all of them to try and find gsub_ligature
and gsub_contextchain
to remove liga
and calt
sublookups.
Ok, wait a bit doing anything as I'll see if can use just calt and that might solve the issue.
I think adding this as an option is a good idea either way, because I personally would prefer to see "<= over ≤" in my code simply due to trained recognition.
Yep, but no reason for doing so in the build scripts because if everything is contextual alternates then you'll have to actively enable "calt" in your editors for it to appear.
i think...
Unfortunately, Linux users are stuck with xft
which renders pretty much every font everywhere. Hardly anyone bypasses font rendering options, since font rendering is already a difficult problem handled by xft. Given that xft doesn't support disabling contextual alternates, this means that one can't simply disable contextual alternates or ligatures.
This commonly leads to Linux-specific forks for fonts that ligatures, like Monaco: https://gist.github.com/epegzz/1634235
Ah...I'm not a linux guy :)
I've disabled it in source until we get it sorted out :)
I'll have this ready tomorrow and everything should be good to go before the 25th :+1:
Perfect - not critical though so don't :sweat_smile:
The whole concept is still quite experimental in terms of editor support.
does the disable thing work now?
Nope, didn't implement that yet. Will get around to that next weekend.
No stress, just curious :smile:
Just wanted to say -- excellent font, really shaping up to be the best programming font. Looking forward to having ligatures again -- Monoid was the only font with ligatures that worked in OS X Terminal and Xcode. Thank you for your work, truly well done.
@glebd cheers, ligatures will reappear for sure - any ideas/suggestions about ligatures are much welcomed in #25 :+1:
Some research:
font.gsub_lookups
=font.getLookupInfo
to get tuple with type (first tuple item). Iterate lookup table checking for 'gsub_ligature', 'gsub_contextchain'font.removeLookup
to remove item by name passed to getLookupInfo.