ttf-parser icon indicating copy to clipboard operation
ttf-parser copied to clipboard

Support GDEF Ligature Caret List Table

Open Lohann opened this issue 2 years ago • 3 comments
trafficstars

I noticed that the Ligature Caret List Table parsing is being skipped, I need this table in order to properly position the cursor and highlight text in a text editor when dealing with ligatures such as , , etc. image

  • https://learn.microsoft.com/en-us/typography/opentype/spec/gdef#ligature-caret-list-table-overview

Also seems that apple have its own custom ligature Caret Table called lcar:

  • https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6lcar.html

Lohann avatar Jun 14 '23 01:06 Lohann

Yes, this feature isn't needed by harfbuzz/rustybuzz, therefore there were no need in implementing it.

RazrFalcon avatar Jun 14 '23 11:06 RazrFalcon

Hiya! It looks like I need the GDEF ligature caret list table as well. Would you be receptive to a PR implementing this?

daprahamian avatar Feb 02 '24 16:02 daprahamian

Sure, patches are welcome.

RazrFalcon avatar Feb 02 '24 16:02 RazrFalcon