Instance Method
generateMetrics(_:)generateMetrics:generateMetrics_
Creates metrics from dictionary descriptions.
Declaration
func generateMetrics(_ metrics: [[AnyHashable : Any]])Declaration
- (void) generateMetrics:(NSArray<NSDictionary *> *) metrics;Declaration
generateMetrics_(metrics: list[dict])Discussion
Each dictionary can contain type, name, predicate, pos, and over values. The created metrics are added to the font and initialized on all masters.
See Also
Metrics
Font-wide metrics definitions.
KVO marker for changes that affect metrics.
Returns the number of font-wide metrics definitions.
Returns the metric at an index.
Returns the first metric with a name.
Returns the first metric with a type and name.
Returns the first metric with a type, name, and filter.
Adds a metric definition to the font.
Removes a metric definition from the font.
Sorts metric definitions by filter and position.
Marks layer metrics for recalculation.
Assigns default layer widths for a glyph.