fontFeatures property
Set<FontFeature>
get
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.startTagName == "sup") result.add(const FontFeature.superscripts());
if (k.startTagName == "sub") result.add(const FontFeature.subscripts());
k = k.parent;
}
return result;
}