Skip to content

Commit

Permalink
Improved KernFeatureWriter for LTR/RTL kerning
Browse files Browse the repository at this point in the history
This implements what was discussed here unified-font-object/ufo-spec#16 (comment)

The result's have been used but are not yet approved by anyone :-)
This is the output file: https://github.com/Tarobish/Jomhuria/blob/master/sources/kerning.fea

@behdad wrote:

> * Generate both an LTR kern lookup and an RTL one; including all kerning pairs in both.
  * Reference the RTL lookup from script systems that are RTL, and the LTR one for others.
>
>That's the crudest heuristic, but it works. From there on, you can add more complexity to achieve smaller kern tables. But none of these really belongs into the UFO per se. For example, a huge improvement:
>
> * Associate each glyph to a Unicode character,
  * Exclude from RTL kern table all glyphs associated with Unicode characters that have Bidi_Type=L,
  * Exclude from LTR kern table all glyphs associated with Unicode characters that have Bidi_Type=R or Bidi_Type=AL.
  • Loading branch information
graphicore committed Sep 11, 2015
1 parent 3acd5ca commit 8f6da70
Showing 1 changed file with 513 additions and 10 deletions.
Loading

0 comments on commit 8f6da70

Please sign in to comment.