Type Method
metricsKey(_:name:operator:value:oppositeSite:atHeight:master:) metricsKey:name:operator:value:oppositeSite:atHeight:master: metricsKey_name_operator_value_oppositeSite_atHeight_master_
Parses a metrics key into its referenced glyph, operator, numeric value, opposite side, height, and master.
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?>?) -> BoolDeclaration
+ (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
glyphNameOn return, the referenced glyph name.
aOperatorOn return, the arithmetic operator encoded in the key.
valueOn return, the numeric value encoded in the key.
oppositeSiteOn return, whether the key references the opposite side.
atHeightOn return, the height qualifier from the key, or
NSNotFound.masterNameOn 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
Layer-specific metrics key for the advance width.
Layer-specific metrics key for the left side bearing.
Layer-specific metrics key for the right side bearing.
Layer-specific metrics key for the top side bearing.
Layer-specific metrics key for the bottom side bearing.
Layer-specific metrics key for the vertical advance width.
Layer-specific metrics key for the vertical origin.