photopea / Typr.js

Typr.js - process fonts in Javascript
MIT License
914 stars 73 forks source link

support full GSUB and GPOS #4

Closed be5invis closed 7 years ago

photopea commented 7 years ago

There already is some implementation of GPOS in sources, but it is not inserted into main library. Do you think you can test it and maybe implement GSUB in the same manner?

be5invis commented 7 years ago

the language, script, feature and lookup part are same between GSUB and GPOS. The only difference lies in the subtable level.

photopea commented 7 years ago

I have implemented the basic support for GSUB and GPOS. It is enough GSUB to render arabic text or to do ligatures. Is it sufficient for your problem?