Declaration

class func metricsKey(_ key: String?, name glyphName: AutoreleasingUnsafeMutablePointer<NSString?>, operator aOperator: UnsafeMutablePointer<CChar>, value: UnsafeMutablePointer<CGFloat>, oppositeSite: UnsafeMutablePointer<Int16>, atHeight: UnsafeMutablePointer<Int>, master masterName: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Declaration

+ (BOOL) metricsKey:(NSString *) key name:(NSString **) glyphName operator:(char *) aOperator value:(CGFloat *) value oppositeSite:(short *) oppositeSite atHeight:(NSInteger *) atHeight master:(NSString **) masterName;

Declaration

metricsKey_name_operator_value_oppositeSite_atHeight_master_(key: str, aOperator: str, value: float, oppositeSite: int, atHeight: int) -> tuple[bool, str, str]

Parameters

glyphName

On return, the referenced glyph name.

aOperator

On return, the arithmetic operator encoded in the key.

value

On return, the numeric value encoded in the key.

oppositeSite

On return, whether the key references the opposite side.

atHeight

On return, the height qualifier from the key, or NSNotFound.

masterName

On return, the referenced master name.

Return Value

YES when the key syntax is valid.

Discussion

This parses metrics key syntax without evaluating the referenced layer.

See Also

Metrics Keys