fontFeatures property
Set<FontFeature>
fontFeatures
Gathers all and nodes and adds the corresponding FontFeature
to the result set
Implementation
Set<FontFeature> get fontFeatures {
NodeV2? k = parent;
Set<FontFeature> result = {};
while (k != null) {
if (k.tagName == "sup") result.add(FontFeature.superscripts());
if (k.tagName == "sub") result.add(FontFeature.subscripts());
k = k.parent;
}
return result;
}