question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTL kerning missing from font

See original GitHub issue

This is a strange one, but I don’t know how to help myself any further:

A font of mine doesn’t generate RTL kerning (or at least it doesn’t show in both FontGoggles and Indesign), while LTR kerning generates fine.

ufo2ft code base is up-to-date with the repo.

I’ve had fontmake export the debug feature file and pasted all the code relevant to the kerning pair راbelow (ر is supposed to be first from right, ا is second):

languagesystem DFLT dflt; # Default, Default
languagesystem arab dflt; # Arabic, Default

@kern1.reh = [reh-ar ...];
@kern2.alef = [alef-ar ...];

lookup kern_Arab {
    lookupflag IgnoreMarks;
    pos @kern1.reh @kern2.alef <-100 0 -100 0>;
} kern_Arab;

feature kern {
    script arab;
    language dflt;
    lookup kern_Arab;
} kern;

Looks correct, doesn’t it? Any idea where to look further? Thank you.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:26 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
yanonecommented, Oct 11, 2022

Sorry, I’m reopening this. There is still kerning missing. I’ll investigate further.

1reaction
khaledhosnycommented, Oct 4, 2022

We maintain all the relevant libraries, so I don’t know why we are adding workarounds. Lets make things simple and robust: add two private keys for LTR and RTL kerning, and when ufo2ft sees them it uses them directly and don’t try to do any direction guessing. We have glyphsLib so we can build Glyphs sources with ufo2ft, not to convert to general purpose UFOs that can be consumed by arbitrary tools.

Read more comments on GitHub >

github_iconTop Results From Across the Web

kerning.plist is not sufficient to do mixed RTL and LTR kerning
Yeah, I see the problem and it needs to be solved. To date, there have been RTL fonts produced with UFO, but the...
Read more >
Resubmission: RTL Kerning Conversion Glyphs 2 to 3 - Glyphs Forum
this is an example of a new file (no convered data at all) and in the SEGMENT KERNING the RTL values are missing....
Read more >
Dragging the second letter in RTL kerning - Font Forum
For all pairs ensure all values for the first are set to zero. Then the warning will disappear and the font will work...
Read more >
Add right-to-left text – Figma Help Center
RTL fonts are available by default in Figma design. If a character isn't supported by the font you're using, Figma will fall back...
Read more >
Kerning RTL Fonts Traditional Arabic Font Family
Kerning RTL Fonts Traditional Arabic Font Family ... https://docs.microsoft.com/en-us/typography/font-list/traditional-arabic ... Missing Channel Docker.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found