configureProperties

Type: Function

How to get configureProperties?

JavaScript

import configureProperties from 'fontoxml-families/src/configureProperties.js'

Configure common properties for nodes matching the given selector.

If a property is not provided, the value for this property of a more generic selector is used.

Example:

JavaScript

import configureAsInlineFrame from 'fontoxml-families/src/configureAsInlineFrame.js';
import configureProperties from 'fontoxml-families/src/configureProperties.js';

// Configure all 'hi' elements as inline frames
configureAsInlineFrame(sxModule, 'self::hi');

// But if they are @rend="sub", they should be subscript
configureProperties(sxModule, 'self::hi[@rend="sub"]', { baseline: 'subscript' });

// And if they are @rend="bold", they should be bold
configureProperties(sxModule, 'self::hi[@rend="sub"]', { weight: 'bold' });

Arguments

  1. sxModule

    (Required)

    Type: SxModule

  2. selector

    (Required)

    Type: XPathTest

  3. options

    (Required)