• B
    [arabic] Make ZWJ prevent ligatures instead of facilitating it · c52ddab7
    Behdad Esfahbod 提交于
    Unicode 6.2.0 Section 16.2 / Figure 16.3 says:
    
    "For backward compatibility, between Arabic characters a ZWJ acts just
    like the sequence <ZWJ, ZWNJ, ZWJ>, preventing a ligature from forming
    instead of requesting the use of a ligature that would not normally be
    used. As a result, there is no plain text mechanism for requesting the
    use of a ligature in Arabic text."
    
    As such, we flip internal zwj to zwnj flags for GSUB matching, which
    means it will block ligation in all features, unless the font
    explicitly matches U+200D glyph.  This doesn't affect joining behavior.
    c52ddab7
hb-ot-shape-complex-arabic.cc 11.3 KB