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

diacriticized letters are not kerned #76

Open
awelotta opened this issue Dec 17, 2023 · 1 comment
Open

diacriticized letters are not kerned #76

awelotta opened this issue Dec 17, 2023 · 1 comment
Labels
Enhancement New feature or request Low priority Won't be worked on for the time being

Comments

@awelotta
Copy link

Latin characters with diacritics are not kerned.
Ex:

môi
moï
moi

renders as
image

I think they should be in most cases kerned the same as their underlying glyph, at least for diacritics that clearly go above/below the letter.

@eigilnikolajsen
Copy link
Owner

The reason for this is kind of complex.
I chose to only support basic latin because all glyphs that have kerning are made in 6 additional variant that require some manual labor, and I didn't think the work of making all diacritic letters kerned was worth the time spent.
Additionally, the size of the font baloons significantly because these glyph take up 7 times as much, and are rarely used in code.

It's easy to put glyph into classes and use kerning opentype features to kern them directly like so:
pos @narrow_letter @origin' @widest_letter <-44 0 0 0>; but many editors (and teminals) don't support positional lookups so I had to resort to ligature substitution. However, that requires a different glyph to sub with, hence the 6 needed variants (furthest left, medium left, little left, little right, medium right and furtest right).

@eigilnikolajsen eigilnikolajsen added the Enhancement New feature or request label Dec 27, 2023
@eigilnikolajsen eigilnikolajsen added the Low priority Won't be worked on for the time being label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Low priority Won't be worked on for the time being
Projects
None yet
Development

No branches or pull requests

2 participants