Disable ligatures when tracking is non-zero#8443
Conversation
|
In my opinion this should be user choice. Ligatures can look fine with minor tracking adjustments. |
|
Edit: whoops, this is not a response to Enivex but my own thoughts on the PR Not a big fan of this overwriting a non- I believe from a user-perspective it would be much less surprising to convert ligatures to be As of right now with this PR, I believe people that still want ligatures could manually set the relevant Edit: I can't confirm what the actual behavior in LaTeX is though; there seem to be varying solutions for this. The microtype package seems to have a dedicated option and explains in its user manual:
|
I guess by If you have a whole bunch of text and want to enable ligatures for all of it and then only a bit of it has tracking that might be a bit unexpected. But I'm not sure in what case you would explicitly set ligatures to true. With I wondered about setting a threshold for not doing the whole behavior if tracking is small enough. But that would also have to be a configurable setting probably.
Oh, I guess you're right. I tested it, but I must have compared it to text outside of Edit: Didn't fully read this part:
I'm not sure with negative tracking. If you really want to move letters sort of into each other you probably don't want ligatures either. But I suppose negative tracking is much more likely to be a very small number. |
|
Yes, It'd become a I agree that this would still be a weird interface; just slightly more predictable and give space for relevant documentation (explaining why the default is One option would be to just document that all of these are mere suggestions that can be overwritten by other values were sensible, pointing to Generally setting I feel more input and discussion would be good here either way, which is why making issues first is generally a good idea 😅. Ultimately we'll have to hear from Laurenz what his vision here is though, as generally he's the person you have to convince to get things merged.
I guess you're right. Unlike positive tracking, negative tracking only makes sense in a very limited fashion were (imo) ligatures would still be fine visually, but beyond that to where letters are overlapping it might indeed make sense to also disable ligatures for more consistency. |
Yeah, in hindsight I probably should have created an issue first. It just seemed like a standard typographic thing to me to disable them with tracking, but after seeing that I misunderstood the microtype thing it seems much less clear. |
I noticed that when tracking is non-zero, ligatures are still enabled. This leads to the letters involved looking too close together:
It seems that both LaTeX and browsers handle this by just disabling ligatures when tracking is non-zero. For example here is the relevant part of the CSS spec: https://drafts.csswg.org/css-text/#example-d2a0b994.
I didn't find any issues talking about this and it seemed quite easy to implement, so I'm making a PR directly instead of creating an issue first.