Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ligature caret positioning provided in font #308

Open
lojjic opened this issue Mar 27, 2024 · 0 comments
Open

Support ligature caret positioning provided in font #308

lojjic opened this issue Mar 27, 2024 · 0 comments

Comments

@lojjic
Copy link
Collaborator

lojjic commented Mar 27, 2024

See discussion in #304 and #306

The current approach of treating all skipped char indices as ligatures with evenly-spaced interior caret positions is not appropriate for many graphemes, e.g. surrogate pair emojis and characters with marks. The proper approach appears to be:

  • By default, just use a single caret position for all char indices within a glyph
  • Add support for parsing the Ligature Caret List table from GDEF
  • For any multiple-char-spanning glyph, check if it appears in the Ligature Caret List table, and if so then use those positions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant