luapower / tr0

Unicode text rendering engine in Lua
http://luapower.com/tr0
0 stars 1 forks source link

Individually-inheritable OpenType features #12

Open capr opened 5 years ago

capr commented 5 years ago

Might work: just concatenate the features string with parent's when flattening.

Q: How does harfbuzz handle duplicate features in a list? Uses the last one?

khaledhosny commented 5 years ago

Yes, the last one wins. Though for some features that require special handling by the engine, e.g. init or medi; setting -init;+init is not the same as not setting it at all; by default the engine selectively enables it based on text analysis, but -init;+init will enable it for all characters in the text. But this is probably an edge case, since such required features should not normally be activated or deactivated by the user.