How to get configureAsInvalid?
import configureAsInvalid from 'fontoxml-families/src/configureAsInvalid.js'
This family is used to express situation which may be schema valid, but should be considered as invalid by Fonto.
Elements configured as invalid will not be shown in Fonto. In fact, the presence of such elements will cause the document to be considered invalid, which means it can not be loaded.
This family should be used to indicate, using for example an XPath selector, elements or elements in a certain context which should be considered as invalid by Fonto. This will ensure that any action taken within Fonto that would create a situation matching the selector will also be considered invalid and as such will not be available to the author.
The nodes on which a dependency can be taken are limited to the ancestors, siblings, children and attributes of any node in the node’s ancestry, including the node itself.
TT EN TI ON
We do still advise that situations which should be considered invalid at all times are resolved in the schema itself instead of using this family. If this family is used, ensure that no documents contain the matching element(s), as such documents can not be loaded in Fonto.