als@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agoJenga Stacklemmy.blahaj.zoneimagemessage-square18fedilinkarrow-up1535arrow-down113file-text
arrow-up1522arrow-down1imageJenga Stacklemmy.blahaj.zoneals@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agomessage-square18fedilinkfile-text
minus-squarechellomere@lemmy.worldlinkfedilinkarrow-up2·edit-213 hours agoIt would make sense that a code editor could use a more limited subset of text rendering that could be more optimized. Perhaps a bit surprisingly, Microsoft actually has pretty good documentation on OpenType. Here’s info on what shaping applies to “standard” scripts: https://learn.microsoft.com/en-us/typography/script-development/standard And here’s the landing page for the latest OpenType spec: https://learn.microsoft.com/en-us/typography/opentype/spec/ Specifically for ligatures, you’re looking for the liga feature which is specified in the font’s GSUB table.
It would make sense that a code editor could use a more limited subset of text rendering that could be more optimized.
Perhaps a bit surprisingly, Microsoft actually has pretty good documentation on OpenType. Here’s info on what shaping applies to “standard” scripts:
https://learn.microsoft.com/en-us/typography/script-development/standard
And here’s the landing page for the latest OpenType spec:
https://learn.microsoft.com/en-us/typography/opentype/spec/
Specifically for ligatures, you’re looking for the liga feature which is specified in the font’s GSUB table.